All Questions
Tagged with python-attrs type-hinting
1
question
0
votes
0
answers
58
views
python redefining `attrs.field` to accept default argument
How do you redefine the attrs.field function (and type hint it) to accept a default argument? This is my current code.
from attrs import define, field
def fixed_attr(default, **kwargs):
return ...