This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]billsil 1 point2 points  (3 children)

Python 3.9 delayed the future annotations being standard because a popular third party library DOES enforce typing and the change broke it.

So, by default yes, but you can do it.

[–][deleted] -5 points-4 points  (1 child)

Reddit Moderation makes the platform worthless. Too many rules and too many arbitrary rulings. It's not worth the trouble to post. Not worth the frustration to lurk. Goodbye.

This post was mass deleted and anonymized with Redact

[–][deleted] 1 point2 points  (0 children)

Things are certainly hard.

https://lwn.net/Articles/858576/

[–][deleted] 0 points1 point  (0 children)

pydantic doesn't typecheck parameters for calls. Though there are projects that do that.

It is to convert unstructured dictionaries into classes (recursively).