From 05c0d62f0f22fbd4518f8ea31e5117caccae3b2f Mon Sep 17 00:00:00 2001 From: Joe Hultgren Date: Mon, 15 Jun 2026 11:30:06 -0700 Subject: [PATCH] add __all__ to avoid linting warnings without __all__ pyright complains that the variables aren't exposed `"Shotgun" is not exported from module "shotgun_api3" Import from "shotgun_api3.shotgun" instead (Pyright)` partial fix for issue #445 --- shotgun_api3/__init__.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/shotgun_api3/__init__.py b/shotgun_api3/__init__.py index 98a93b5b..43dd5e29 100644 --- a/shotgun_api3/__init__.py +++ b/shotgun_api3/__init__.py @@ -57,3 +57,20 @@ __version__, ) from .shotgun import SG_TIMEZONE as sg_timezone # noqa unused imports + +# expose imports to avoid linting warnings +__all__ = [ + 'Shotgun', + 'ShotgunError', + 'ShotgunFileDownloadError', + 'ShotgunThumbnailNotReady', + 'Fault', + 'AuthenticationFault', + 'MissingTwoFactorAuthenticationFault', + 'UserCredentialsNotAllowedForSSOAuthenticationFault', + 'ProtocolError', + 'ResponseError', + 'Error', + '__version__', + 'sg_timezone', +]