Skip to content

Commit

Permalink
Add imports for back-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanforbes committed Mar 1, 2024
1 parent d7e8ae7 commit 4e2c87b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion asyncpg/exceptions/_base.py
Expand Up @@ -17,7 +17,11 @@
else:
from typing import Self

from ._postgres_message import PostgresMessage as PostgresMessage
# PostgresMessageMeta imported for backward compatibility
from ._postgres_message import ( # noqa: F401
PostgresMessage as PostgresMessage,
PostgresMessageMeta as PostgresMessageMeta,
)

__all__ = ['PostgresError', 'FatalPostgresError', 'UnknownPostgresError',
'InterfaceError', 'InterfaceWarning', 'PostgresLogMessage',
Expand Down
6 changes: 6 additions & 0 deletions asyncpg/pool.py
Expand Up @@ -18,6 +18,12 @@
from . import pool_connection_proxy
from . import protocol

# Imported for backward compatibility
from .pool_connection_proxy import ( # noqa: F401
PoolConnectionProxy as PoolConnectionProxy,
PoolConnectionProxyMeta as PoolConnectionProxyMeta,
)

if typing.TYPE_CHECKING:
import sys

Expand Down

0 comments on commit 4e2c87b

Please sign in to comment.