@classmethod
    def from_pty(cls, stdout, true_color=False, term=None):
        def get_size():
            rows, columns = _get_size(stdout.fileno())
            return Size(rows=rows, columns=columns)

        return cls(stdout, get_size, true_color=true_color, term=term)
The 'target' parameter is the final field being joined to, 'joins'
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/terminal/vt100_output.py/Vt100_Output.from_pty--crossover with--dataset/ETHPy150Open django/django/django/db/models/sql/query.py/Query.trim_joins