Search code examples
How to annotate the type of arguments forwarded to another function?...

pythonmypypython-typing

Read More
Type parameter list cannot be empty for TypeVarTuple...

pythonpython-typingtype-variables

Read More
Is there a way to annotate a function as a type when called at module level but show its property va...

pythonpython-typing

Read More
Can Mypy overload single objects and unpacked tuples?...

pythonmypypython-typing

Read More
Specifying only one of a group of parameters is required in a TypedDict...

pythonpython-typing

Read More
Typehint the type of a collection and the collection itself...

pythongenericspython-typing

Read More
Differentiating two tuple types based on their first elements...

pythonpython-typing

Read More
Why does attempting to do a `Callable` alias (`Alias=Callable`) cause a "Bad number of argument...

pythonpython-typingtype-alias

Read More
Generic type that acts like base type...

pythonmypypython-typing

Read More
How to overload class member type depending on argument?...

pythonpython-typingpyright

Read More
Abbreviating dataclass decorator without losing IntelliSense...

pythonpython-typingpython-dataclassespyright

Read More
Python 3.11 declare variable typing without assigning value...

pythonmypypython-typingpython-3.11

Read More
How to typehint generic function that does dynamic retrieval of generic instance from dictionary?...

pythongenericspython-typing

Read More
Is there a way to type hint a class property created without the property decorator?...

pythonpropertiespython-typing

Read More
How to properly suppress mypy error 'Name "__qualname__" not defined'...

pythonmypypython-typing

Read More
Given argument of list[int] | list[str], can't I be sure that the list is list[int] if elem...

pythonmypypython-typing

Read More
Explanation of reportAttributeAccessIssue of pylance...

pythonpython-typingpyright

Read More
What determines the order of type variables when narrowing a generic type?...

pythonmypypython-typing

Read More
Type Annotations and Docstrings for Decorator...

pythonpython-typingpython-decoratorspyright

Read More
How can I type hint the return type of .values() in a custom dict subclass?...

pythonpython-typingmypy

Read More
Returning Any from function declared to return "str" while returning a Dict val...

pythonpython-typingmypy

Read More
Type hints for lxml?...

pythonlxmlpython-typingmypylxml.html

Read More
How would I type-annotate operator `__ior__` on a class inheriting from dict?...

pythonpython-typingmypy

Read More
How to infer the type of the first element in an iterable?...

pythonpython-typingmypypyright

Read More
Cast variable to right type automatically in Python...

pythoncastingpython-typing

Read More
Should I cast to string and then to int for mypy?...

pythonpython-typingmypy

Read More
Type hinting in Pycharm for dynamically generated classes...

pythonsqlalchemypycharmpython-typing

Read More
Type annotations for dynamically created subclasses...

pythonpython-typing

Read More
How to set type hint on field when dynamically creating a class...

pythonpython-typingpydantic

Read More
Dynamic class level type hints in python?...

pythonpycharmpython-typing

Read More
BackNext