Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in python-typing

Why does mypy flag "Item None has no attribute x" error even if I check for None?

python mypy python-typing

How to annotate that a function produces a dataclass?

python python-typing mypy

How to add type hint for all protocol buffer objects in python functions?

Defining an Annotated[str] with constraints in Pydantic v2

How to use a type defined later for function annotations?

python python-typing

Does mypy require __init__ to have -> None annotation

python mypy python-typing

Best base type which support `in` operator?

python python-typing

None vs NoneType for type annotation

Python 3.9 use OR | operator for Union types?

Is it possible to check if a type "matches" a generic type in Python?

python python-typing

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

python python-typing

Not Required in Pydantic's Base Models

Pylance not working autocomplete for dynamically instantiated classes

Type for O(1) lookup

python python-typing

How to specify dict_values in type hints?

python python-typing

Should I type something as Optional if None breaks the logic of the function, but I do check for it inside the body?

python python-typing

Type hint Pandas DataFrameGroupBy

python pandas python-typing

Type annotations for a class with attributes of the same type? [duplicate]

python python-typing

Infer return type annotation from other function's annotation

python python-typing