[issue42826] typing.Iterable does not need __getitem__() method

2021-01-04 Thread Josh Rosenberg
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

[issue42826] typing.Iterable does not need __getitem__() method

2021-01-04 Thread Serhiy Storchaka
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

[issue42826] typing.Iterable does not need __getitem__() method

2021-01-04 Thread Peter Pavlinič
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

[issue42826] typing.Iterable does not need __getitem__() method

2021-01-04 Thread Peter Pavlinič
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