Jukka Lehtosalo
Jukka Lehtosalo
Based on the typing-sig discussion, lots of packages still have some type comments. Every project that has supported Python 3.5 at some point and hasn't used com2ann or similar tool...
The immortal bit is primarily needed to enable multiple threads to access some objects without causing contention due to reference counts. We could do the same optimization on the non-free-threaded...
> Maybe this could be described as a minimum mypy version This wouldn't properly address this use case. The feature proposed here would be used to preserve compatibility across major...
We should probably treat TYPE_CHECKING as False when running the code. However, the else block in the example hasn't been fully processed by mypy, so compiling it may be tricky.
python/mypy#19758 made equality faster for `str | None` and `bytes | None`. Other optional types are still unoptimized.
Added "Fix mypyc" to the list.
Mypyc now needs setuptools on 3.12 and later, which we don't yet include as a dependency.
Added "Require 3.12 tests to pass in CI".
The issue isn't specific to dataclasses.