Skip to content

ty compatibility #361

@kalekseev

Description

@kalekseev

Let's track ty compatibility in this issue

  • run ty on CI typecheck tests with ty #339
  • respect return type of __new__ astral-sh/ty#281 - right now ty thinks that field field = UUIDField(default=uuid.UUID) has type () -> UUID instead of UUID. (fixed in 0.0.10)
  • Trying to set nullable field to None model.filed = None leads to Invalid assignment to data descriptor attribute `field` on type `Self@method` with custom `__set__` method
  • ArrayField(CharField()) results in list[list[str]] field type instead of list[str]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions