Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in python-typing

Is there a covariant mutable version of List?

python python-typing

How to define a TypedDict class with keys containing hyphens [duplicate]

python python-typing

What is the correct way of using typing.Literal?

python python-typing mypy

Check if string is in string literal type

python python-typing

How to specify input function parameter type and return type when passing the function as an argument to another function?

python python-typing

Type hinting the return value of a class method that returns self?

python python-typing

Pylance: unexpected type inference for a union of two list types

Create dataclass instance from union type based on string literal

Python: type-hinting a classmethod that returns an instance of the class, for a class that is inherited

python python-typing mypy

Python Decorator for Async and Sync Function without code duplication

Correct type annotation for a celery task

python celery python-typing

How to annotate a dataclass' attribute as another dataclass' object?

How to type hint variable that is initially None but is guaranteed to get a value

python python-typing

How to get an abstract dataclass to pass mypy?

Python3 pickle: Expected type 'SupportsWrite[bytes]', got 'BinaryIO' instead

What is the proper way to type hint the return value of an @asynccontextmanager?

How to implement type hinting for DataFrame

If there are multiple possible return values, should pyright automatically infer the right one, based on the passed arguments?

Dealing with lack of non-null assertion operator in Python

python mypy python-typing