Closed robin-nitrokey closed 1 year ago
Hey! Can you link to proper the docs, so I could verify the PR?
This is specified by PEP 561.
Does it work for you? I think you are missing adding this file to the project configuration (which is suggested in the docs).
Yes, it works for me. We use flit
for packaging and it includes all files inside the package folder:
Data files which your code will use should go inside the Python package folder. Flit will package these with no special configuration.
https://flit.pypa.io/en/stable/pyproject_toml.html#external-data-section
Note that we don’t mention the VERSION
file in there either.
This patch adds a py.typed file so that users of the library can make use of our type annotations.
Checklist
Make sure to run
make check
andmake fix
before creating a PR, otherwise the CI will fail.