SpiceQA
Questions
Tags
Users
Badges
python-typing
465 Questions
Newest
Active
Unanswered
Frequent
More
Score
View
Card
Compact
How to type a function that takes either a class, or an instance of the class, and returns an instance of that class?
user_2233608
0
•
asked Mar 22, 2022
1
2
119
python-typing
mypy
python
Annotate a function argument as being a specific module
user_758345
0
•
asked Mar 22, 2022
6
6
482
python-typing
pytest
python
pydantic's update_forward_refs raises typing NameError
user_4981223
0
•
asked Mar 17, 2022
3
1
1326
python-typing
pydantic
typing
python-3.x
python
Python type hint for class member with None type or dict
user_1981275
0
•
asked Mar 13, 2022
2
2
675
python-typing
type-hinting
python-3.x
class
python
How to define Python 'Missing' type annotation?
user_4237072
0
•
asked Mar 11, 2022
2
2
129
python-typing
python
Python type hinting of "subclass of class a and b" with typevar
user_13018190
0
•
asked Mar 5, 2022
2
0
203
python-typing
type-hinting
python-3.x
How can the return annotation of decorated method be reflected when decoration (which changes the return type) is done dynamically
user_1010243
0
•
asked Feb 28, 2022
1
0
68
python-typing
python
annotation for the documentation differs from the annotation for the type checking
user_5378816
0
•
asked Feb 25, 2022
1
2
45
python-typing
python
How to annotate the type of arguments forwarded to another function?
user_2148718
0
•
asked Feb 24, 2022
8
1
401
python-typing
mypy
python-3.x
python
How to narrow a list of unions?
user_3067276
0
•
asked Feb 23, 2022
2
1
118
narrowing
union-types
python-typing
mypy
python
Prev
Prev
8
9
10
(current)
11
12
Next
Next
Hot Questions