Description
When .pyi files are run in Python 3, the session ends immediately with a segfault.
This was very seldom to never tested and suddenly showed up in the course of supporting pathlib.Path in PySide6.
This topic might be changed into a more general issue to improve the quality of .pyi support with mypy, too.