Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in python-typing

How to annotate the type of a list of functions with different output type in Python

python python-typing

Python typing: how to declare a variable that is either a path-like object (os.path) or a Path (pathlib)

Why does all(isinstance(x, str) for x in value) not help Pyright infer Iterable[str] from object?

How do I type hint a method with the type of the enclosing class and update that with inheritance?

python python-typing

How to do structural pattern matching in Python 3.10 with a type to match?

Python typing: how to name a new type?

python python-typing

Did Python 3.9 update how to type hint the function type?

Inheriting from Protocols in Python

Type hint for attribute that might not exist

Python typing: tuple[str] vs tuple[str, ...]

python python-typing

How to specify that a python object must be two types at once

python python-typing

What does ~<type> mean in type checker diagnostic messages?

python python-typing

final annotation and decorator in python3.8

python python-typing

Inferring argument types from **args

python python-typing