Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating __all__ statements to a simpler form that is supported by stat… #828

Merged
merged 5 commits into from
Nov 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions asyncpg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@
from ._version import __version__ # NOQA


__all__ = (
('connect', 'create_pool', 'Pool', 'Record', 'Connection')
+ exceptions.__all__ # NOQA
)
__all__ = ('connect', 'create_pool', 'Pool', 'Record', 'Connection')
__all__ += exceptions.__all__ # NOQA
4 changes: 3 additions & 1 deletion asyncpg/exceptions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ class IndexCorruptedError(InternalServerError):
sqlstate = 'XX002'


__all__ = _base.__all__ + (
__all__ = (
'ActiveSQLTransactionError', 'AdminShutdownError',
'AmbiguousAliasError', 'AmbiguousColumnError',
'AmbiguousFunctionError', 'AmbiguousParameterError',
Expand Down Expand Up @@ -1180,3 +1180,5 @@ class IndexCorruptedError(InternalServerError):
'WindowingError', 'WithCheckOptionViolationError',
'WrongObjectTypeError', 'ZeroLengthCharacterStringError'
)

__all__ += _base.__all__