Skip to content

Commit 0e0eb8d

Browse files
authored
Expose Pool as asyncpg.Pool (#669)
This makes `Pool` accessible as `asyncpg.Pool` for ease of typing annotations and subclassing. Fixes: #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

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77

88
from .connection import connect, Connection # NOQA
99
from .exceptions import * # NOQA
10-
from .pool import create_pool # NOQA
10+
from .pool import create_pool, Pool # NOQA
1111
from .protocol import Record # NOQA
1212
from .types import * # NOQA
1313

1414

1515
from ._version import __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)