List Question
20 TechQA 2024-03-31T10:37:46.810000How can I get IDEs to recognize a desired type name for a statically declared, dynamically created class in Python?
61 views
Asked by D. Estes McKnight
Typing a function decorator with conditional output type, in Python
63 views
Asked by Jetpac
How to type a decorator transforming a mandatory keyword arg into an optional keyword arg?
30 views
Asked by b4stien
Is it possible to type-hint a strict subclass of a given type?
41 views
Asked by Beefster
Why do Python type hints sometimes worsen IDE recommendations?
85 views
Asked by MYK
how in python create a type based on return type of a function
28 views
Asked by Mohammad Hossein Amri
Advanced type hints in Python - how do I avoid mypy being angry when the type is not specific enough
35 views
Asked by Myccha
Is it appropriate to subclass the parent's parameters in subclass __init__'s within python?
55 views
Asked by Justin Conlon
AttributeError: '_io.StringIO' object has no attribute 'buffer'?
38 views
Asked by browser-bug
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
How to tackle "Statement is unreachable [unreachable]" with mypy when setting attribute value in a method?
66 views
Asked by Niko Fohr
Type hinting Python class with dynamic "any" attribute
57 views
Asked by Mikko Ohtamaa
Python narrowing of generic type in function signature
55 views
Asked by HairyNopper
How to get property return type annotation?
43 views
Asked by Mark
Which part of a Union type does a value satisfy?
43 views
Asked by user19954134
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 do I test whether two structural types are subtypes of each other?
30 views
Asked by Anaphory