Skip to content

Commit b753e82

Browse files
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: microsoft/pyright#3409 Ref: python/mypy#8754 (comment)
1 parent b8f256f commit b753e82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

aw_client/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
from .client import ActivityWatchClient # noqa
1+
from .client import ActivityWatchClient
2+
3+
__all__ = ("ActivityWatchClient",)

0 commit comments

Comments
 (0)