List Question
20 TechQA 2024-03-31T20:59:18.833000mypy Incompatible return value type with TypeVar(bound=str)
70 views
Asked by Artem
Typing a function decorator with conditional output type, in Python
63 views
Asked by Jetpac
Why do Python type hints sometimes worsen IDE recommendations?
85 views
Asked by MYK
Advanced type hints in Python - how do I avoid mypy being angry when the type is not specific enough
35 views
Asked by Myccha
Untyped decorator makes function "add" untyped [misc] (celery & mypy)
32 views
Asked by Rodrigo
String to Literal throws incompatible type error
70 views
Asked by ashnair1
Type inference across functions / reuse type hints
75 views
Asked by Felix Zimmermann
MyPy and sqlalchemy - "Session" has no attribute "__enter__"; maybe "__iter__"? Mypyattr-defined
47 views
Asked by Shine
Python - mypy attribute error for `fractions` library attribute
82 views
Asked by srm
How to tackle "Statement is unreachable [unreachable]" with mypy when setting attribute value in a method?
66 views
Asked by Niko Fohr
How to type hint an overloaded decorator that may be sync or async
70 views
Asked by kthy
Type error using combination of mypy and boto3 stubs
60 views
Asked by Martin Golis
Type hint for a factory classmethod of an abstract base class in Python 3
34 views
Asked by MaartenB
How to distinguish between Base Class and Derived Class in generics using Typing and Mypy
35 views
Asked by newandlost
Numpy and mypy type annotation - npt.NDArray dtype not being checked
95 views
Asked by Gustavo Alves
How to catch potentially undefined variables with pylint or mypy?
174 views
Asked by Tobias Hermann
Define a protocol that mimics QFileSystemModel.index() and its overloads
65 views
Asked by shao.lo
Is there a shorter way to tell Mypy that a given optional chaining is fine?
50 views
Asked by Erlend Magnus Viggen