| 842 | |
| 843 | # A sized iterable is fine as array input. |
| 844 | class Iterable: |
| 845 | def __iter__(self): |
| 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]) |
no outgoing calls
searching dependent graphs…