Skip to content

Commit

Permalink
Explict import of submodule's __all__ & removed 2 unnecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jupiterbjy committed Jan 21, 2022
1 parent ab2e0ac commit 2cb4b71
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions aiogoogle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@
__license__,
__copyright__,
)
from .client import Aiogoogle # noqa: F401 imported but unused
from .resource import GoogleAPI # noqa: F401 imported but unused
from .client import Aiogoogle, __all__ as _client_all # noqa: F401 imported but unused
from .resource import GoogleAPI, __all__ as _resource_all # noqa: F401 imported but unused
from .excs import ( # noqa: F401 imported but unused
AiogoogleError,
AuthError,
HTTPError,
ValidationError,
__all__ as _exception_all
)
from . import utils # noqa: F401 imported but unused
from . import validate # noqa: F401 imported but unused


__all__.extend(client.__all__)
__all__.extend(resource.__all__)
__all__.extend(excs.__all__)
__all__.extend(_client_all)
__all__.extend(_resource_all)
__all__.extend(_exception_all)

0 comments on commit 2cb4b71

Please sign in to comment.