Search code examples
What is the proper way to type hint the return value of an @asynccontextmanager?...


pythonpython-asynciopython-typingcontextmanagerpyright

Read More
Pylance reports "Code is unreachable", when my test shows otherwise...


pythonpyright

Read More
How to find type of a Python variable when hovering the mouse cursor over a variable in Visual Studi...


pythonvisual-studio-codepylancepyright

Read More
Typehint function *args -> tuple[*args] with constraint on the args...


pythonpython-typingmypypyright

Read More
How to solve "type is partially unknown" warning from pyright?...


pythonpython-typingpyright

Read More
Static colored attributes on custom types without adding them in class definition in python...


pythonpython-typingpyright

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


pythonpython-typingpyright

Read More
PyLance in strict mode: additional typing hints for external libraries...


pythonpython-typingpyright

Read More
Python VS Code: Type hinting with multiple types...


pythonpython-typingpyright

Read More
Type inference issue in Pylance for a variable of Union type...


pythonnumpypython-typingpyright

Read More
How to tell type checker the type of an external function output...


pythonpython-typingpyright

Read More
Type annotations: tuple type vs union type...


pythonpython-typingunion-typespyright

Read More
Why can't I pass a variable of type `NDArray` to `np.save`?...


pythonnumpypython-typingpyright

Read More
How do I get Pylance to ignore the possibility of None?...


pythonpython-typingpyright

Read More
Pylance requiring explicit type on conformant list variables...


pythonpython-typingpyright

Read More
Expressing semantic content of tuple values in type annotations...


pythonpython-typingpyright

Read More
Python annotate type as regex pattern...


pythonmypypython-typingpyright

Read More
How to assign a type hint from the return type hint of a function...


pythonpython-typingpyright

Read More
How to type hint a `pl.date`?...


pythonpython-typingpython-polarspyright

Read More
Handling Python Type Checker Errors with Return Type Declarations...


pythonpattern-matchingpython-typingpyright

Read More
Handling Python Type Checker Errors with Return Type Declarations (fields default values = None)...


pythonpattern-matchingpython-typingpyright

Read More
How to override inferred type by Pylance using type annotations?...


pythonpython-typingpyright

Read More
Type Hinting Error with Union Types and Type Variables in Python 3.11...


pythonpython-typingpyright

Read More
Narrow down type-hint of return value to child class if function only hints to parent class...


pythonmypypython-typingpyright

Read More
How to type-hint a truly optional parameter with overloads...


pythonpython-typingpyright

Read More
Can you do type checking in a called function?...


pythonpython-typingpyright

Read More
Python Analysis: Type Checking Mode in VS CODE...


pythonvisual-studio-codepython-typingpython-3.10pyright

Read More
Pydantic model field with default value does not pass type checking...


pythonpython-typingpydanticpyright

Read More
How to type annotate a decorator to make it Override-friendly?...


pythonoverridingpython-decoratorspython-typingpyright

Read More
Python : pyright : Self@T is not compatible with T...


pythonpython-typingpyright

Read More
BackNext