Skip to content

Col.__init__ has wrong type for argument target #830

Closed
@jerch

Description

@jerch

Bug report

What's wrong

This is the current Col type declaration:

class Col(Expression):
def __init__(self, alias: str, target: str, output_field: Optional[_OutputField] = ...): ...

Looking at django sources, target is meant to be a Field type, not str.

How is that should be

Make target a Field type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions