Adding a py.typed to avoid mypy errors when importing module

This prevents errors like the following when importing maubot and running mypy:
Skipping analyzing "maubot": module is installed, but missing library stubs or py.typed marker

See
https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-library-stubs-or-py-typed-marker
This commit is contained in:
Pierre GIRAUD 2023-03-24 10:38:09 +01:00
parent c2648be1e3
commit 28b0412c8c
No known key found for this signature in database
GPG Key ID: 2D3C1FBD8BA59F61
2 changed files with 1 additions and 0 deletions

0
maubot/py.typed Normal file
View File

View File

@ -69,6 +69,7 @@ setuptools.setup(
"management/frontend/build/static/css/*", "management/frontend/build/static/css/*",
"management/frontend/build/static/js/*", "management/frontend/build/static/js/*",
"management/frontend/build/static/media/*", "management/frontend/build/static/media/*",
"py.typed",
], ],
"maubot.cli": ["res/*"], "maubot.cli": ["res/*"],
"maubot.standalone": ["example-config.yaml"], "maubot.standalone": ["example-config.yaml"],