Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in python-typing

How to get editor type hints for a dataclass generated by make_dataclass function? [duplicate]

Subclassing a generic class with constrained type variable in Python 3.12+ without repeating the constraints

python python-typing

Python typehint subset(partial) of an TypedDict

Is it a good idea to use a type alias name in python and then declare that as a variable?

What is the pythonic way to represent an Iterable that can be iterated over multiple times

python python-typing

Any downsides to using `from __future__ import annotations` everywhere?

python python-typing

Python typing: Narrowing type from function that returns a Union

python python-typing mypy

ImportError: cannot import name 'deprecated' from 'typing_extensions'

Type hints and code completion. How to specialize a generic class with types

Python type hints for type promotion

python mypy python-typing

Can I disable type errors from third-party packages in Pylance?

Python generic type on function getting lost somewhere

python python-typing mypy

Convert enum to Literal type alias in Python typing

python enums python-typing

Pydantic returns 'field required (type=value_error.missing)' on an Optional field with a custom model

How to solve "unexpected keyword argument" with python-attrs construct, so that mypy is happy?

Type hint for Callable that takes kwargs

python python-typing

Type a function that takes a tuple and returns a tuple of the same length with each element optional?

python python-typing

Type hinting a dict of known shape

python python-typing

Workaround for TypeVar bound on a TypeVar?

python python-typing