Skip to main content

All Questions

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 ...
The unknown's user avatar