Search code examples
If there are multiple possible return values, should pyright automatically infer the right one, base...


pythonpython-typingpyright

Read More
Mypy fails with overloads and literals...


pythonoverloadingpython-typingmypy

Read More
How do you alias a type in Python?...


pythonpython-typingtype-alias

Read More
How to type hint a dynamically-created dataclass...


pythonpython-typingpython-dataclasses

Read More
Name not defined in type annotation...


pythonpython-typing

Read More
Static type checkers and Language Servers not recognizing attributes of objects that are subclasses...


pythonpython-typingmypypython-language-server

Read More
Can I disable type errors from third-party packages in Pylance?...


pythonpython-typingpylancepyright

Read More
getting argument of typing.Optional in python...


pythonpandaspython-typing

Read More
What's the point of using TypeVar?...


pythonpython-typing

Read More
Type hint for "hashable"...


pythonpython-typing

Read More
How to specify input function parameter type and return type when passing the function as an argumen...


pythonpython-typing

Read More
Can ParamSpec be used to type individual arguments?...


pythonpython-typing

Read More
How to correctly add type hints to a decorator?...


pythonpython-typingpython-decorators

Read More
Mypy error: PEP 695 type aliases are not yet supported...


pythonmypypython-typingpython-3.12

Read More
Why does Pylance not complain about missing members of a Protocol?...


pythonpython-typingpyright

Read More
Type for heterogeneous *args...


pythonvariadic-functionspython-typinghigher-order-functions

Read More
Is this the correct way of use Protocol, and if it's why mypy fails?...


pythonpython-typingmypy

Read More
Python typing: concrete class that implements protocol with method that takes another protocol as ar...


pythonpython-typingstructural-typing

Read More
How to define a nested generic type in Python?...


pythonpython-typing

Read More
Numpy Typing with specific shape and datatype...


pythonnumpypython-typing

Read More
How do I do server-side default value when using SQLAlchemy 2.0 with dataclass?...


pythonsqlalchemypython-typing

Read More
annotate a NamedTuple for storing a function and its args and kwargs...


pythonpython-typing

Read More
How do I declare a numpy array to be 1 dimensional of arbitrary length?...


pythonnumpypython-typing

Read More
Static type checking or IDE intelligence support for a numpy array/matrix shape possible?...


pythonnumpypython-typingmypypyright

Read More
Using TypeVarTuple with inner TypeVar (variadic generics transformation)...


pythonpython-typing

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


pythonpython-asynciopython-typingcontextmanagerpyright

Read More
Python typing annotation return value annotation based if function argument being a list or not...


pythonpython-typing

Read More
Type annotations for parameters of Luigi tasks...


pythonpython-typingmypyluigi

Read More
Validating detailed types in Python dataclasses...


pythonpython-typingpython-dataclasses

Read More
Typing for tuple or list of tuples in recursive function...


pythonrecursionpython-typing

Read More
BackNext