Python 3.11 is finally released. In the CPython release team, we have put a lot of effort into making 3.11 the best version of Python possible. Better tracebacks, faster Python, exception groups and except*, typing improvements and much more. Get it here: This is the stable release of Python 3.11.0 Python 3.11.0 is the newest major release of the Python programming language, and it contains many new features and optimizations. Major new features of the 3.11 series, compared to 3.10 Some ...
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.