diff --git a/python/.changelog.d/2542.fixed b/python/.changelog.d/2542.fixed new file mode 100644 index 000000000..013f6df79 --- /dev/null +++ b/python/.changelog.d/2542.fixed @@ -0,0 +1 @@ +Fixed issue where type declarations were not visible to consumer packages. diff --git a/python/setup.py b/python/setup.py index c2ade8e79..28f7854b0 100755 --- a/python/setup.py +++ b/python/setup.py @@ -57,6 +57,7 @@ setup( + (CWD / "CHANGELOG.md").read_text(), long_description_content_type="text/markdown", url="https://github.com/trezor/trezor-firmware/tree/master/python", + package_data={"trezorlib": ["py.typed"]}, packages=find_packages("src"), package_dir={"": "src"}, entry_points={"console_scripts": ["trezorctl=trezorlib.cli.trezorctl:cli"]}, diff --git a/python/src/trezorlib/py.typed b/python/src/trezorlib/py.typed new file mode 100644 index 000000000..e69de29bb