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

Method __len__

tests/test_codecs.py:894–895  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

892 return iter([1, 2, 3])
893
894 def __len__(self):
895 return 3
896
897 result = await self.con.fetchval("SELECT $1::int[]", Iterable())
898 self.assertEqual(result, [1, 2, 3])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected