Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in mypy

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

python python-typing mypy

Why does mypy error if I assign only one of two generic typevars in a classmethod?

python generics 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

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

python python-typing mypy

MyPy type annotation for a bound method?

python mypy python-typing

FastAPI/Pydantic in a project with MyPy

python mypy pydantic fastapi

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

python python-typing mypy

overload following optional argument

python mypy python-typing

Python type hints: How to use Literal with strings to conform with mypy?

python mypy literals

How to constrain a Union so that input and output types match?

Type hinting of dependency injection

python python-typing mypy

How to avoid mypy checking explicitly excluded but imported modules _without_ manually adding `type:ignore` (autogenerated)?

python mypy

How do you get mypy to recognize a newer version of python?

Can I inform mypy that an expression will not return an Optional?

python mypy python-typing

Does mypy only type check a function if it declares a return type?

python python-typing mypy

How can I use @property setters and make mypy happy?

Incompatible type with element of Union