Skip to content

Commit 0e0eb8d

Browse files
authored
Expose Pool as asyncpg.Pool (MagicStack#669)
This makes `Pool` accessible as `asyncpg.Pool` for ease of typing annotations and subclassing. Fixes: MagicStack#643
1 parent e585661 commit 0e0eb8d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎asyncpg/__init__.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77

88
from .connectionimportconnect, Connection# NOQA
99
from .exceptionsimport*# NOQA
10-
from .poolimportcreate_pool# NOQA
10+
from .poolimportcreate_pool, Pool# NOQA
1111
from .protocolimportRecord# NOQA
1212
from .typesimport*# NOQA
1313

1414

1515
from ._versionimport__version__# NOQA
1616

1717

18-
__all__= ('connect', 'create_pool', 'Record', 'Connection') + \
19-
exceptions.__all__# NOQA
18+
__all__= (
19+
('connect', 'create_pool', 'Pool', 'Record', 'Connection')
20+
+exceptions.__all__# NOQA
21+
)

0 commit comments

Comments
(0)