Re:Free-threaded CPython is ready to experiment with
by kortex on Friday July 12, 2024 @09:00PM
(#40950888)
Nope. Type annotations can be executed and accessed by the runtime. That's how things like Pydantic, msgspec, etc, do runtime type enforcement and coercion.
There are also multiple compilers (mypyc, nuitka, others I forget) which take advantage of types to compile python to machine code.
There are also multiple compilers (mypyc, nuitka, others I forget) which take advantage of types to compile python to machine code.