Search code examples
How to type mutable default arguments...

pythonpython-typingmutabledefault-arguments

Read More
Python 3 type hinting for decorator...

pythonpython-decoratorspython-typing

Read More
Type annotations for Django models...

pythondjangopython-typing

Read More
Why does Python not allow Generics with isinstance checks?...

pythongenericspython-typingisinstance

Read More
How do I annotate types in a for-loop?...

pythonfor-looppycharmpython-typing

Read More
Type of a returned class...

pythonpython-typing

Read More
Type hinting a non-generator (non-consumable) iterable...

pythonpython-typing

Read More
Python (mypy) incompatible types when working with typeVars and a callable argument...

pythonpython-typingmypypyright

Read More
Hello World for jaxtyping?...

pythonpytorchpython-typingjax

Read More
How do I create a managed attribute compatible with Pydantic?...

pythonpython-typingpydantic

Read More
How can I satisfy mypy when I have a potential callable that involves Self?...

pythonpython-typingmypy

Read More
TypeVar defined within if/else...

pythonpython-typingmypy

Read More
Type hints in namedtuple...

pythonpython-typingpython-dataclassesnamedtuple

Read More
Mypy doesn't detect a type guard, why?...

pythonpython-typingmypypydantic

Read More
How can I override a method where the ellipsis is assigned as the default value of a parameter in py...

pythonpython-typingpyside6

Read More
Python 3: Ellipsis in function parameters?...

pythonpython-typing

Read More
Which type hint expresses that an attribute must not be None?...

pythonpython-typingpydantic

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 do I type annotate JSON data in Python?...

pythonpython-typing

Read More
Define a jsonable type using mypy / PEP-526...

pythonpython-typingmypy

Read More
mypy error with conditional optional integers in dictionary...

pythonpython-typingmypy

Read More
How to annotate that a function produces a dataclass?...

pythonpython-typingmypy

Read More
Create recursive dataclass with self-referential type hints...

pythonpython-typingpython-dataclassesrecursive-datastructures

Read More
Python 3.13 generic classes with type parameters and inheritance...

pythongenericspython-typingpython-3.12

Read More
How to type Polars' Altair plots in Python?...

pythonpython-typingpython-polarsaltair

Read More
Why do I lose `__doc__` on a parameterized generic?...

pythongenericspython-typing

Read More
Python 3 type Dict with required and arbitrary keys...

pythonpython-typing

Read More
Type-checking issue with io.TextIOBase in a Union...

pythonpython-typingmypy

Read More
The correct way to annotate a "file type" in Python...

pythonpython-typing

Read More
adding type information without dependency on typing module...

pythonpython-typingmypytypeshed

Read More
BackNext