From b753e82e277c9f9e52f8d307320304c172ea2ccc Mon Sep 17 00:00:00 2001 From: Jeremiah England Date: Mon, 4 Sep 2023 11:22:56 -0400 Subject: [PATCH] chore: Export intended public imports It looks like MyPy and Pyright currently require imports like these to be re-exported in order to be used. Doing this raises a lint error for me due to Pyright: ```python import aw_client aw_client.ActivityWatchClient() # "ActivityWatchClient" is not exported from module "aw_client" ``` Ref: https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface Ref: https://github.com/microsoft/pyright/issues/3409 Ref: https://github.com/python/mypy/issues/8754#issuecomment-891109179 --- aw_client/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aw_client/__init__.py b/aw_client/__init__.py index 099726e..a33cb2a 100644 --- a/aw_client/__init__.py +++ b/aw_client/__init__.py @@ -1 +1,3 @@ -from .client import ActivityWatchClient # noqa +from .client import ActivityWatchClient + +__all__ = ("ActivityWatchClient",)