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

Method __len__

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

Source from the content-addressed store, hash-verified

846 return iter([1, 2, 3])
847
848 def __len__(self):
849 return 3
850
851 result = await self.con.fetchval("SELECT $1::int[]", Iterable())
852 self.assertEqual(result, [1, 2, 3])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected