diff --git a/asyncpg/__init__.py b/asyncpg/__init__.py index 01af7904..e8cd11eb 100644 --- a/asyncpg/__init__.py +++ b/asyncpg/__init__.py @@ -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 diff --git a/asyncpg/exceptions/__init__.py b/asyncpg/exceptions/__init__.py index 446a71a8..af46a754 100644 --- a/asyncpg/exceptions/__init__.py +++ b/asyncpg/exceptions/__init__.py @@ -1040,7 +1040,7 @@ class IndexCorruptedError(InternalServerError): sqlstate = 'XX002' -__all__ = _base.__all__ + ( +__all__ = ( 'ActiveSQLTransactionError', 'AdminShutdownError', 'AmbiguousAliasError', 'AmbiguousColumnError', 'AmbiguousFunctionError', 'AmbiguousParameterError', @@ -1180,3 +1180,5 @@ class IndexCorruptedError(InternalServerError): 'WindowingError', 'WithCheckOptionViolationError', 'WrongObjectTypeError', 'ZeroLengthCharacterStringError' ) + +__all__ += _base.__all__