Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in python-typing

What's the type hint for an array?

python arrays python-typing

os.PathLike[Any] vs os.PathLike[str]

python mypy python-typing

Skipping analyzing "feedparser.util": module is installed, but missing library stubs or py.typed marker

typing.Protocol class `__init__` method not called during explicit subtype construction

Type hinting enum member value in Python

python enums python-typing

Can you type hint overload a return type for a method based on an argument passed into the constructor?

How to create typing.Literal from multiple lists of values in python

python python-typing

Should arguments that default to None always be type hinted as Optional[]? [duplicate]

python python-typing mypy

Is there a preferable way to create type aliases for compound types with Python's typing module? [duplicate]

python python-typing

How to check if Mypy `# type: ignore` comments are still valid and required?

python python-typing mypy

When/why use types from typing module for type hints [duplicate]

python python-typing

Type hints without value assignment in Python

python python-typing

TypeError: 'numpy._DTypeMeta' object is not subscriptable

Type hint function accepting a Union

What is the benefit of "from __future__ import annotations" if classes are imported for type hints anyway?

python python-typing

MyPy checking typing.Protocol with Python 3.7 Support

python mypy python-typing

How to specify type that can be either integer or string [duplicate]

python python-typing

How to create singleton object, which could be used both as type and value (similar to None)?

python python-typing

How to annotate a function that preserves type but applies a transformation to certain types in Python?

python python-typing mypy