Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in 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

Subclass overriding attribute with subtype of parent's attribute

python python-typing mypy

How to use T=TypeVar('T', bound=...) with Type[T] correctly?

How to type hint function to be compatible with numpy

Is there a PEP484 type hint for 'character'? [duplicate]

python python-typing

How to fix mypy error, "Expression has type Any [misc]", for python type hinting of int __pow__ int?

python python-typing mypy

Python 3 type hinting for dynamic attributes through __getattr__ [duplicate]

MyPy type annotation for a bound method?

python mypy python-typing

Import a pyi (type stub file) into a normal python module

How to write a file-like class that satisfies typing.TextIO?

python python-typing mypy

pydantic v2.0.0 with pylint no-member warning