Open SaelKimberly opened 4 months ago
P.S: Note, that in patched version, signature of as_dataclass
decorator may be without parenthesis...
Which IDE show such results. For example, in simple IDLE in 3.11:
VS Code. Maybe, this is a case of decorator using 🤔
Hello!
There is a feature, that, I think, may greatly improve autocomplete when using recordclass: PEP 681 (dataclass_transform).
I know, this is a feature from python 3.11, but it also available in
typing_extensions>=4.1.0
, so it works for me on python 3.8 :)Then, when use constructor of recordclass datatypes, or on access on fields, there is no type-checker related issues:
This is patched version screenshots:
And without patch:
I really appreciate your work, and hope, it will be helpful :smile_cat: