From 28b0412c8cc15fc41a1edc81162916dd2526d34a Mon Sep 17 00:00:00 2001 From: Pierre GIRAUD Date: Fri, 24 Mar 2023 10:38:09 +0100 Subject: [PATCH] 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 --- maubot/py.typed | 0 setup.py | 1 + 2 files changed, 1 insertion(+) create mode 100644 maubot/py.typed diff --git a/maubot/py.typed b/maubot/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py index 51687cc..2472222 100644 --- a/setup.py +++ b/setup.py @@ -69,6 +69,7 @@ setuptools.setup( "management/frontend/build/static/css/*", "management/frontend/build/static/js/*", "management/frontend/build/static/media/*", + "py.typed", ], "maubot.cli": ["res/*"], "maubot.standalone": ["example-config.yaml"],