Skip to content

The "I may have found a bug in Python" release

Latest
Compare
Choose a tag to compare
@TabulateJarl8 TabulateJarl8 released this 21 Feb 06:05
76135cf

What's Changed

from __future__ import annotations is supposed to bring things like str | int typing back into Python 3.9 by quoting them as strings, like data: "str | int" = 0. However they seem to have forgotten about generic class instantiation typing where you can do MyClass[str | int]() to instantiate a class with generic types so it doesn't quote it and crashes the program. Maybe this is a bug in Python or maybe not, I'm not really sure

Full Changelog: v1.6.0...v1.6.1