Search code examples
How do I type-hint that a Python function returns instance of any class derived from a superclass?...


pythondjangopython-typing

Read More
Type annotation for an iterable class...


pythonpython-typing

Read More
TypeError: typing.Any cannot be used with isinstance()...


pythonpython-typing

Read More
Python type hint Callable with one known positional type and then *args and **kwargs...


pythonpython-typingmypy

Read More
Mypy catch AttributeError...


pythonpython-typingmypy

Read More
Python typing Union of class and it's instance...


pythonpython-typing

Read More
"dict[str, Unknown]" is incompatible with my custom TypedDict...


pythonpython-typinginvariantstypeddict

Read More
How to make python typing recognize subclasses as valid types when it expects their parent class?...


pythonpython-typing

Read More
Subscriptable Type in Python typing...


pythonpython-typing

Read More
Why is Sequence an unsupported operand type for + in mypy?...


pythonpython-typingmypy

Read More
enumerate causes incompatible type mypy error...


pythonpython-typingmypyenumerate

Read More
Why is a property on a subclass, that returns a type consistent with the same attribute on the super...


pythoninheritancepython-typingmypy

Read More
Should Typing.Optional be used if the default value of the parameter is not None?...


pythonpython-typingmypy

Read More
Mypy + FastAPI response_model...


pythonfastapipython-typingmypy

Read More
How do you add type hints for a function with specific keyword arguments?...


pythonpython-typingmypy

Read More
Why does typing variable length Tuple require ellipses but List does not?...


pythonpython-typing

Read More
What is `np.ndarray[Any, np.dtype[np.float64]]` and why does `np.typing.NDArray[np.float64]` alias i...


pythonnumpypython-typing

Read More
How to use np.empty inside numba compiled function; Error message "All templates rejected"...


pythonnumpypython-typingnumba

Read More
Python typing - is there a way to avoid importing of optional type if it's None?...


pythonpython-typingmypypypi

Read More
How can you test that a python typing Protocol is a subclass of another Protocol?...


pythoninheritanceprotocolspython-typing

Read More
Why does AbstractSet not include union and intersection?...


pythonsetpython-typingabc

Read More
Python typings and futures...


pythonpython-asynciofuturepython-typingconcurrent.futures

Read More
Can you specify variance in a Python type annotation?...


pythonpython-typingmypycovariance

Read More
__slots__ conflicts with a class variable in a generic class...


pythonpython-typingslots

Read More
Best base type which support `in` operator?...


pythonpython-typing

Read More
Reference class type in dataclass definition...


pythonpython-typingpython-dataclasses

Read More
Typing, custom collection type...


pythoncounterpython-typing

Read More
Python enum meta making typing module crash...


pythonenumspython-typing

Read More
what does argument "bound" mean in typing.TypeVar?...


pythonpython-typing

Read More
Why doesn't parameter type "Dict[str, Union[str, int]]" accept value of type "Dic...


pythonpython-typingmypy

Read More
BackNext