Skip to content

Python type hints with ty #14457

@cclauss

Description

@cclauss

https://docs.astral.sh/ty seems to find lots of problems with our Python type hints.

ty check \
    --ignore=call-non-callable \
    --ignore=deprecated \
    --ignore=invalid-argument-type \
    --ignore=invalid-assignment \
    --ignore=invalid-return-type \
    --ignore=invalid-type-arguments \
    --ignore=no-matching-overload \
    --ignore=not-iterable \
    --ignore=not-subscriptable \
    --ignore=possibly-missing-submodule \
    --ignore=unresolved-attribute \
    --ignore=unresolved-import

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions