Search code examples
How to prevent type alias defined in a stub file from being used in other modules?...

pythonpython-typingmypy

Read More
Is this a false positive [override] error? "Signature of (method) incompatible with supertype&q...

pythonoverloadingpython-typingmypy

Read More
How to add Python type annotations to a class that inherits from itself?...

pythonpython-typingmypy

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

pythonpython-typingmypy

Read More
Static typing of Python regular expression: 'incompatible type "str"; expected "A...

pythonpython-typingmypypython-re

Read More
mypy with SQLALchemy - error: Incompatible types in assignment...

pythonsqlalchemymypy

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

pythoninheritanceoverridingmypypython-typing

Read More
How to properly deal with [import-untyped] in mypy?...

pythonannotationspython-importmypy

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
What is the right mypy annotation for collections.Counter?...

pythonmypypython-typingpython-3.10

Read More
Is there any reason to enabled other "disallow" options if you have disallow_untyped_defs ...

mypy

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

pythonpython-typingmypy

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

pythonpython-typingmypy

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

pythonpython-typingmypypython-dataclasses

Read More
Understanding unbound type error with mypy...

pythonpython-typingmypy

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

pythonpython-typingmypy

Read More
Type hint for itertools.product doesn't know length of elements...

pythonpython-typingpython-itertoolsmypy

Read More
Type alias for type of typevar and mypy...

pythongenericspython-typingmypytype-alias

Read More
Type annotation for classmethod returning instance...

pythonmypypython-typing

Read More
Python typing error when incrementing a dict value: 'Unsupported operand types for + ("obje...

pythonpython-typingmypy

Read More
Type hint for an object that can be used as a type hint itself...

pythonmypypython-typing

Read More
How to Bound TypeVar Correctly to Protocol?...

pythonpython-typingmypy

Read More
How do I correctly add type-hints to Mixin classes?...

pythonmultiple-inheritancemypypython-typing

Read More
How to typehint return of an object's method to follow a function it receives during init?...

pythonqtpython-typingmypy

Read More
Python (mypy) incompatible types when working with typeVars and a callable argument...

pythonpython-typingmypypyright

Read More
How can I satisfy mypy when I have a potential callable that involves Self?...

pythonpython-typingmypy

Read More
TypeVar defined within if/else...

pythonpython-typingmypy

Read More
Mypy doesn't detect a type guard, why?...

pythonpython-typingmypypydantic

Read More
Define a jsonable type using mypy / PEP-526...

pythonpython-typingmypy

Read More
BackNext