Search code examples
Type hints for a function (multiprocessing)...


pythonpython-multiprocessingpython-typing

Read More
How to have Pyright infer type from an enum check?...


pythonenumspython-typingpyright

Read More
Python method overriding - more specific arguments in derived than base class...


pythoninheritanceoverridingpython-typing

Read More
Python type annotation for sequences of strings, but not for strings?...


pythonpython-typing

Read More
Typehint a method that returns new instance using a superclass classmethod...


pythonpython-typing

Read More
Overriding a method, mypy throws an "incompatible with super type" error when changing ret...


pythoninheritanceoverridingmypypython-typing

Read More
How to check if a type is in a TypeVar or not...


pythonpython-typing

Read More
Is it possible to type annotate Python function parameter used as TypedDict key to make mypy happy?...


pythonpython-typingmypy

Read More
mypy reporting error in generic function on return statement...


pythonpython-typingmypy

Read More
How do I type hint a frame object in Python?...


pythonpython-typingmypy

Read More
Type hints lost when a decorator is wrapped as a classmethod?...


pythonpython-typingtype-parameterpyrightpep-695

Read More
How to build a type from another type and make mypy checking work...


pythonpython-typingmypy

Read More
Generate function signature in python from dataclass...


pythonpython-typing

Read More
How to create type hinting for a generic factory method?...


pythonpython-typing

Read More
Python typing: return type with generics like Clazz[T] as in Java Clazz<T>...


pythongenericspython-typing

Read More
Python: typing a generic function that receives a type and returns an instance of that type...


pythongenericspython-typing

Read More
Dynamically create Literal alias from list of valid values...


pythonpython-typing

Read More
ImportError: cannot import name 'deprecated' from 'typing_extensions'...


pythonpipnlpspacypython-typing

Read More
How to type hint a decorator to dictate some parameters but not all?...


pythonpython-typingmypy

Read More
Pycharm static analysis doesn't infer subclass types as I wished...


pythonpycharmpython-typing

Read More
Access container class from contained class with python dataclasses...


pythonpython-typingmypypython-dataclasses

Read More
Sub-attribute annotation syntax in Python3.12...


pythonpython-typing

Read More
Understanding unbound type error with mypy...


pythonpython-typingmypy

Read More
Python generic type on function getting lost somewhere...


pythonpython-typingmypy

Read More
What is the correct way in python to annotate a path with type hints?...


pythonpython-typingpathlib

Read More
Generic of Class ignored by Generic Pydantic constructor...


pythongenericspython-typingpydantic

Read More
How to write type hints for a function returning itself?...


pythonpython-typing

Read More
Python type for dict-like object...


pythonpython-typing

Read More
How to annotate a variable in Python based on a type that depends on the operating system?...


pythonoperating-systempython-typing

Read More
pyright prioritizes the number of passed arguments over their type when using @overload...


pythonpython-typingpyright

Read More
BackNext