Search code examples
How do I get correct type hints in subclass?...


pythonpython-typingtype-hinting

Read More
Do default parameters overwrite type hints for mypy?...


pythonnonetypemypypython-typingdefault-parameters

Read More
Why does defining the argument types for __eq__ throw a MyPy type error?...


pythonpython-typingmypy

Read More
How do I solve this type hint error "Unexpected type(s)" in PyCharm?...


pythonpycharmpython-typing

Read More
Typing a decorator on a class in Python...


pythonpython-typingmypypython-decorators

Read More
pyright fails parsing TypeForm for Unions with embedded containers...


pythonpython-typingpyright

Read More
Define a type as a union of constants...


pythonpython-typing

Read More
mypy don't recognizes a typing error when it happens in a function...


pythonpython-typingmypy

Read More
"name 'T' is not defined" when evaluating annotations on inherited methods using P...


pythonpython-typingpep-695

Read More
What's the type hint for an array?...


pythonarrayspython-typing

Read More
Python 3.10+: Optional[Type] or Type | None...


pythonpython-typingmypypython-3.10

Read More
Python type hints for function returning multiple return values...


pythonpython-typing

Read More
Get keys of nested TypedDicts...


pythonpython-typingtypeddict

Read More
from __future__ import annotations...


pythonpython-typing

Read More
How to use typing.Annotated...


pythonpython-typing

Read More
Type hint for an object that can be used as a type hint itself...


pythonmypypython-typing

Read More
What is the type hint for a function...


pythonpython-typing

Read More
Python type hinting without cyclic imports...


pythonpython-typing

Read More
Type annotation that depends on the number of args...


pythonpython-typing

Read More
Compile list with more than one argument...


pythonpython-typingpython-internals

Read More
Specify argument and return types of dict transpose function...


pythongenericspython-typing

Read More
Type-hinting parameters with a sentinel value as the default...


pythonmypypython-typing

Read More
Why can I use a non-runtime_checkable protocol with non-method members in isinstance?...


pythonpython-typingpython-3.9structural-typing

Read More
Precise type annotating array (numpy.ndarray) of matplotlib Axes from plt.subplots()...


pythonmatplotlibpython-typingpylance

Read More
Typing a generic function that receives a type and returns an instance of that type...


pythongenericspython-typing

Read More
Deprecate only a specific overload...


pythonpython-typing

Read More
typing.Any vs object?...


pythonpython-typing

Read More
Dealing with lack of non-null assertion operator in Python...


pythonmypypython-typing

Read More
How to do structural pattern matching in Python 3.10 with a type to match?...


pythonpython-typingpython-3.10structural-pattern-matching

Read More
How to typecheck x.startswith() when x has type str | bytes?...


pythonpython-typing

Read More
BackNext