MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / __init__

Method __init__

asyncpg/pool.py:102–107  ·  view source on GitHub ↗
(
        self, holder: PoolConnectionHolder, con: connection.Connection
    )

Source from the content-addressed store, hash-verified

100 __slots__ = ('_con', '_holder')
101
102 def __init__(
103 self, holder: PoolConnectionHolder, con: connection.Connection
104 ) -> None:
105 self._con = con
106 self._holder = holder
107 con._set_proxy(self)
108
109 def __getattr__(self, attr: str) -> Any:
110 # Proxy all unresolved attributes to the wrapped Connection object.

Callers

nothing calls this directly

Calls 1

_set_proxyMethod · 0.80

Tested by

no test coverage detected