We use the Granta STK regularly, but also use mypy
, a static type-checker for Python. Taking a look at the actual STK files when installed, they all have type hints, but without the py.typed
file, mypy
cannot infer any of the type hints when linting code.
While we can include this file manually by editing our site-packages, it is tedious to do that for every single virtual environment.
Would it be possible for Ansys to include this file in future releases of the STK?
Note: The py.typed
file is literally an empty file named py.typed
which is included in the root directory of the library. See PEP 561 for more information.