Josh Rosenberg added the comment:
As Serhiy says, the glossary term for an iterable is not the same as the
documentation for typing.Iterable (which at this point is largely defined in
terms of collections.abc.Iterable). True, collections.abc.Iterable does not
detect classes that iterate via
Serhiy Storchaka added the comment:
I do not know how is it related to typing.Iterable and I have not found any
mention of typing.Iterable on the provided link, but an iterable object can be
implemented with __getitem__ method.
--
nosy: +serhiy.storchaka
Peter Pavlinič added the comment:
In documentation it is written that typing.Iterable can be implemented with
__getitem__() method that implements Sequence semantics.
That is not correct. link:
/glossary.html#term-iterable
--
___
Python tracker
Peter Pavlinič added the comment:
In documentation it is written that typing.Iterable can be implemented with
__getitem__() method that implements Sequence semantics.
That is not correct. link:
https://docs.python.org/3.79/glossary.html#term-iterable
--
title: typing.Iterable does