Search code examples
mypy error with conditional optional integers in dictionary...

pythonpython-typingmypy

Read More
How to annotate that a function produces a dataclass?...

pythonpython-typingmypy

Read More
Type-checking issue with io.TextIOBase in a Union...

pythonpython-typingmypy

Read More
adding type information without dependency on typing module...

pythonpython-typingmypytypeshed

Read More
Type hint for a tuple of variable length (variadic tuple)?...

pythonpython-typingmypy

Read More
What is the difference between TypeVar and NewType?...

pythonpython-typingmypy

Read More
How to specify return type in an async Python function?...

pythontypespython-asynciomypy

Read More
mypy: argument of method incompatible with supertype...

pythonpython-typingmypy

Read More
How can I specify the data structure so requirements of mypy and pydantic are satisfied...

pythonpython-typingmypypydantic

Read More
How can mypy ignore a single line in a source file?...

pythonpython-typingmypy

Read More
mypy says request.json returns Optional[Any], how do I solve?...

pythonmypy

Read More
How to statically enforce frozen data classes in Python?...

pythonmypypython-typingpython-dataclasses

Read More
Typing a Python dictionary as Dict[key[T], value[K]] where T and K are restricted...

pythonmypypython-typingpyright

Read More
Silence mypy arg-type error when using stategy pattern...

pythonpython-typingmypy

Read More
Generate python type stub for native moduel with docstring...

pythonmypy

Read More
Annotate a tuple with variable number of items and first item is of different type...

pythonmypypython-typing

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

pythonmypypython-typingpython-3.12

Read More
mypy warning on numpy.apply_along_axis...

pythonnumpypython-typingmypy

Read More
Make class attribute private outside API for users, but public inside API for developers...

pythonpython-typingmypypylancepyright

Read More
Unsupported converter, only named functions, types and lambdas are currently supported...

pythonpython-typingmypypython-attrs

Read More
MyPy linting conflicting typing with typing.Self...

pythonpython-typingmypy

Read More
Mypy throws syntax error for multi-line f-strings, despite code running without error...

pythonsyntax-errormypyf-stringpython-3.12

Read More
Typing polars dataframe with pandera and mypy validation...

pythonpython-typingmypypython-polarspandera

Read More
MyPy reporting problem: NamedTuple type as an attribute is not supported...

pythonpython-typingmypy

Read More
mypy gives "Incompatible default for argument" when Dict param defaults None...

pythonpython-typingmypypylint

Read More
Mypy: How should I type a dict that has strings as keys and the values can be either strings or list...

pythonpython-typingmypy

Read More
mypy and variance on function returning a list of subclasses based on input parameter...

pythonpython-typingmypypyright

Read More
What is the type hint for the pytest fixture "capsys"?...

pythonpytestpython-typingmypy

Read More
Can Pyright/MyPy deduce the type of an entry of an ndarray?...

pythonnumpypython-typingmypypyright

Read More
Python equivalent of Typescript interface...

pythonpython-typingmypy

Read More
BackNext