3 ms·
> you can just derive a new decorator from it with the defaults you want. This could hurt basic static analysis.
by conaclos 4y ago
> you can just derive a new decorator from it with the defaults you want.
This could hurt basic static analysis.
- dragonwriter 4y ago> This could hurt basic static analysis. That’s a good point. I know some of the python static analysis tools can “see through” some simple indirection, but don't know if even a simple wrapper injecting arguments would work with any (or which) of them for this purpose.
- saiojd 4y agoIt's ugly but you can fix this with `dataclass_transform`