You can't compile to an executable with mypyc, just native C extensions.
Re:Python 3.11 vs 3.10 performance
by staticassertion on Wednesday July 06, 2022 @04:51PM
(#32006653)
My bad, thanks for clarifying.
> Mypyc compiles Python modules to C extensions. It uses standard Python type hints to generate fast code. Mypyc uses mypy to perform type checking and type inference.