Skip to content

Commit

Permalink
Expose Pool as asyncpg.Pool (#669)
Browse files Browse the repository at this point in the history
This makes `Pool` accessible as `asyncpg.Pool` for ease of typing annotations and subclassing.

Fixes: #643
  • Loading branch information
rugleb committed Nov 29, 2020
1 parent e585661 commit 0e0eb8d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions asyncpg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@

from .connection import connect, Connection # NOQA
from .exceptions import * # NOQA
from .pool import create_pool # NOQA
from .pool import create_pool, Pool # NOQA
from .protocol import Record # NOQA
from .types import * # NOQA


from ._version import __version__ # NOQA


__all__ = ('connect', 'create_pool', 'Record', 'Connection') + \
exceptions.__all__ # NOQA
__all__ = (
('connect', 'create_pool', 'Pool', 'Record', 'Connection')
+ exceptions.__all__ # NOQA
)

0 comments on commit 0e0eb8d

Please sign in to comment.