Search code examples
Given argument of list[int] | list[str], can't I be sure that the list is list[int] if elem...

pythonmypypython-typing

Read More
What determines the order of type variables when narrowing a generic type?...

pythonmypypython-typing

Read More
How can I type hint the return type of .values() in a custom dict subclass?...

pythonpython-typingmypy

Read More
Returning Any from function declared to return "str" while returning a Dict val...

pythonpython-typingmypy

Read More
Type hints for lxml?...

pythonlxmlpython-typingmypylxml.html

Read More
How would I type-annotate operator `__ior__` on a class inheriting from dict?...

pythonpython-typingmypy

Read More
How to infer the type of the first element in an iterable?...

pythonpython-typingmypypyright

Read More
Should I cast to string and then to int for mypy?...

pythonpython-typingmypy

Read More
MyPy displays an error when inheriting from str and adding metaclass...

pythoninheritancemypypython-typing

Read More
Type hinting a Hypothesis composite strategy...

pythonmypypython-typingpython-hypothesis

Read More
Why is `re.Pattern` generic?...

pythonmypypython-typingpython-re

Read More
Pandas 'type' object is not subscriptable...

pythonpandasmypypython-typing

Read More
Is there a way to ignore mypy checks on a single function?...

pythonpython-typingmypy

Read More
typechecking for textx models...

pythonpython-typingmypytextx

Read More
distinguishing homogeneous and heterogeneous tuples in python function overloads...

pythonpython-typingmypy

Read More
List[Optional[int]] type checking when assigning...

pythonpython-typingmypy

Read More
Python type hints and context managers...

pythonpython-typingmypy

Read More
mypy and attrs: errors typechecking lists of subclasses...

pythonpython-typingmypy

Read More
"List[Child]" is incompatible with "List[Parent]"...

pythonpython-typingmypy

Read More
How to use typing hints with an optional first parameter...

pythonpython-typingmypy

Read More
Why does `mypy --strict` not throw an error in this simple code?...

pythonpython-typingmypy

Read More
Python type hints for class decorators with self references...

pythonpython-typingmypypython-decorators

Read More
mypy set dictionary keys / interface...

pythonpython-typingmypy

Read More
How to check that concrete method is respecting type-hinting for an abstract method...

pythonpython-typingmypy

Read More
MyPy: 'incompatible type' for virtual class inheritance...

pythonpython-typingmypy

Read More
Why do I get mypy no overload variant of "zip" matches argument error?...

pythonpython-typingmypy

Read More
What type to use for itertools.count in Python?...

pythonpython-typingmypypython-3.8

Read More
MyPy gives error "Missing return statement" even when all cases are tested...

pythonpython-typingmypy

Read More
Why does mypy ignore a generic-typed variable that contains a type incompatible with the TypeVar?...

pythonpython-typingmypy

Read More
Combining several structural types in python...

pythonpython-typingmypy

Read More
BackNext