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

Method __instancecheck__

asyncpg/connection.py:38–40  ·  view source on GitHub ↗
(cls, instance)

Source from the content-addressed store, hash-verified

36class ConnectionMeta(type):
37
38 def __instancecheck__(cls, instance):
39 mro = type(instance).__mro__
40 return Connection in mro or _ConnectionProxy in mro
41
42
43class Connection(metaclass=ConnectionMeta):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected