this post was submitted on 25 Oct 2022
11 points (100.0% liked)

Python

3235 readers
1 users here now

News and discussions about the programming language Python


founded 5 years ago
MODERATORS
11
submitted 2 years ago* (last edited 2 years ago) by cypherpunks@lemmy.ml to c/python@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[–] pingveno@lemmy.ml 2 points 2 years ago

That dataclass_transform looks pretty cool. There has traditionally been some shortcomings between Python's type annotations and more complex behavior of certain classes. For example, Django has complicated behavior in its ORM governed by metaclasses. Currently that requires a custom bespoke plugin for each type checker. dataclass_transform will instead allow them to write the one chunk of code that will work everywhere.