Skip to content

Commit 7c6e999

Browse files
vitaly-burovoy1st1
authored andcommitted
Fix typo PooledConnectionProxy=>PoolConnectionProxy
1 parent 9c32b86 commit 7c6e999

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

asyncpg/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ def _notify(self, pid, channel, payload):
918918
else:
919919
# `_proxy` is not None when the connection is a member
920920
# of a connection pool. Which means that the user is working
921-
# with a PooledConnectionProxy instance, and expects to see it
921+
# with a `PoolConnectionProxy` instance, and expects to see it
922922
# (and not the actual Connection) in their event callbacks.
923923
con_ref = self._proxy
924924

tests/test_pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async def test_pool_07(self):
131131
cons = set()
132132

133133
async def setup(con):
134-
if con._con not in cons: # `con` is `PooledConnectionProxy`.
134+
if con._con not in cons: # `con` is `PoolConnectionProxy`.
135135
raise RuntimeError('init was not called before setup')
136136

137137
async def init(con):
@@ -141,7 +141,7 @@ async def init(con):
141141

142142
async def user(pool):
143143
async with pool.acquire() as con:
144-
if con._con not in cons: # `con` is `PooledConnectionProxy`.
144+
if con._con not in cons: # `con` is `PoolConnectionProxy`.
145145
raise RuntimeError('init was not called')
146146

147147
async with self.create_pool(database='postgres',

0 commit comments

Comments
 (0)