Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in python-typing

Dataclasses: Require at least one value to be set in grouping of model fields

Python type hinting, output type depends on input type

How to correctly type-annotate functions with variable types?

python python-typing

Python 3.10+: Optional[Type] or Type | None

How to declare an array or a list in a Python @dataclass? [duplicate]

What's the correct way to type-hint a method that returns an instance of it's own class? [duplicate]

What Type do I use for SQLalchemy declarative_base?

Get function annotations in the 'readable' format

Type annotations: pathlib.Path vs importlib.resources.abc.Traversable

python python-typing

What is the type hint for the pytest fixture "capsys"?

How to make work typing annotation on mypy with unpacking params for pytest parameterized test?

Python TypedDict: functional syntax when inheriting another TypedDict

How to write a typehint / use a typevar for a filter method?

python python-typing

Why isn't dict[str, str] assignable to Mapping[str | int, str] (Mapping key type isn't covariant)?

Create a typing from a custom dataclass