Re: In support of PEP 649

April 16, 2021
10:11 a.m.
Guido:
I also maintain a library that uses type annotations in a runtime context (cattrs), but in a slightly different way than Pydantic. My project is much less popular than Pydantic (to be expected, since it only deals with de/serialization and the class definition layer is attrs/dataclasses), and the first issue filed on my bug tracker about future annotations was created at the end of 2019, so that's when I started thinking about it. To be honest, supporting stringified annotations was a lot of work to do in an efficient way (and that's the main reason cattrs has two converter classes now), but there was plenty of time and I simply did the work. The new design is even faster than the old one.
1431
Age (days ago)
1431
Last active (days ago)
0 comments
1 participants
participants (1)
-
Tin Tvrtković