Search code examples
Python: Annotate variable as key of a TypedDict...


pythonmypypython-typing

Read More
Is it possible to define a TypeVar from Generic as an upper bound for another TypeVar?...


pythonpython-typingmypy

Read More
mypy fails with mixed types in variable length tuple...


pythonpython-typingmypy

Read More
Why does mypy issubclass type narrowing only work on "type" instances?...


pythonpython-typingmypy

Read More
Mypy: Source file found twice under different module names...


pythonmypy

Read More
Why isn't dict[str, str] assignable to Mapping[str | int, str] (Mapping key type isn't covar...


pythonpython-typingmypypyright

Read More
How to catch potentially undefined variables with pylint or mypy?...


pythonpython-3.xmypylintpylint

Read More
Why does MyPy fail to narrow types when comparing with enum members accessed from another member ins...


pythonpython-typingmypy

Read More
Should mypy infer type from Union options?...


pythonpython-typingmypy

Read More
How can I reveal type hints in PyCharm?...


pythonpycharmpython-typingmypy

Read More
Why does mypy error on returning list[str, int] + list[int]?...


pythonpython-typingmypy

Read More
Containment test against literal list (`y in ["foo", "bar"]`) does not narrow va...


pythonpython-typingmypy

Read More
Module does not explicitly export attribute [attr-defined]...


pythonpython-typingmypy

Read More
Class cannot subclass 'QObject' (has type 'Any') using mypy...


pythonpyqtpython-typingmypy

Read More
Mypy fails with overloads and literals...


pythonoverloadingpython-typingmypy

Read More
Why does mypy does not work with sqlalchemy?...


pythonsqlalchemypython-typingmypy

Read More
Type hint for a dict that maps tuples containing classes to the corresponding instances...


pythonmypypython-typing

Read More
Typing a Decorator that Accepts Arguments via ParamSpec (PEP-612, Python 3.10)...


pythonpython-typingmypy

Read More
How to type default list initializers in functions...


pythonpython-typingmypy

Read More
How to check type compatibility when using the typing module?...


pythonpython-typingmypy

Read More
Convention to distinguish type aliases from actual classes?...


pythonpython-typingmypy

Read More
Scanning a package with mypy yields different result on different machines...


pythonmypy

Read More
Python typing: Use a class variable's value as return type of a (mixin) method...


pythonpython-typingmypy

Read More
Type annotations for sqlalchemy model declaration...


pythonsqlalchemypython-typingmypy

Read More
Type annotations for parameters of Luigi tasks...


pythonpython-typingmypyluigi

Read More
Why is a type identified as not itself in mypy?...


pythonpython-typingmypy

Read More
Pyright false positive when implementing a protocol...


pythonpython-typingmypypyright

Read More
Is it possible to type a list of tuples of identical generic types, with a static type checker?...


pythonpython-typingmypy

Read More
Unbound TypeVar variable in overloaded class...


pythonpython-typingmypy

Read More
mypy linter error (valid-type) with pydantic's Annotated pattern in a generic...


pythonpython-typingmypypydantictype-alias

Read More
BackNext