Search code examples
Python inheritance with @dataclasses.dataclass and annotations...


pythoninheritancepython-typingpython-dataclasses

Read More
How to properly annotate dataclasses with attributes that are not initialized?...


pythonpython-typingmypy

Read More
Valid Python line with undefined variable and annotation...


pythonpython-typing

Read More
What is the best practice to annotate the *args and **kwargs arguments of a wrapper function in Pyth...


pythonpython-typing

Read More
Typehint function *args -> tuple[*args] with constraint on the args...


pythonpython-typingmypypyright

Read More
Avoiding circular imports with type annotations in situations where __future__.annotations is insuff...


pythonpython-typingcircular-dependency

Read More
python typing TypeVar: understanding unbound error...


pythonpython-typingtype-variables

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


pythonpython-typingmypypython-3.10

Read More
Python type checking...


pythonpython-typing

Read More
Can parameters be contra- or covariant in Python?...


pythonpython-typing

Read More
In Python 3.5, how can I specify a function as a type hint?...


pythonpython-typing

Read More
How to typehint package class objects in Python?...


pythonpython-typing

Read More
"invalid type" error in self-referential mypy types...


pythonpython-typingmypy

Read More
Python Type Annotations: Mark item in tuple as optional...


pythonpython-typingmypy

Read More
How to use static type checking using Dict with different value types in Python 3.6?...


pythonpython-typingmypy

Read More
Static typing for function return value of nested list...


pythonpython-typingmypy

Read More
Abstracting over type constructors in Python via type annotations...


pythonpython-typingmypyhigher-kinded-types

Read More
Return None from python function annotated with mypy, multiple return types...


pythonpython-typingmypy

Read More
Accessing an attribute of a variable typed as Union throws an error...


pythonpython-typing

Read More
inspect.signature with PEP 563...


pythonpython-typing

Read More
Declaring length of tuples in Python typing...


pythonpython-typingmypy

Read More
How to implement an interface in a way that is compatible with static type checks?...


pythoninterfacepython-typingmypy

Read More
How does one deal with various errors in statically typed languages (or when typing in general)...


pythonpython-typing

Read More
How to give type annotation for empty set?...


pythonpython-typing

Read More
error: Value of type variable "AnyStr" of "urljoin" cannot be "Optional[str...


pythonurllibpython-typingmypy

Read More
How to solve "type is partially unknown" warning from pyright?...


pythonpython-typingpyright

Read More
How to statically get TypeVar parameters from a Generic for use in static type checking?...


pythongenericspython-typingmypy

Read More
Correct way to define types of optional container-type arguments in MyPy...


pythonpython-typingmypy

Read More
Python how to type hint a Callable with __wrapped__...


pythonpython-typingmypy

Read More
Python is using dict.update not type safe if passing in a TypedDict?...


pythondictionarypython-typingmypy

Read More
BackNext