This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ktbarrett
Recipients ktbarrett
Date 2021-04-14.04:11:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618373506.04.0.457958304296.issue43836@roundup.psfhosted.org>
In-reply-to
Content
The range builtin type is a collections.abc.Sequence, which in Python 3.5 added the optional start and stop arguments to the index method of Sequences. However, range.index does not support these optional arguments required by Sequence.

I noticed this when creating a wrapper type around range which was a  Sequence. mypy complained 'Signature of "index" incompatible with supertype "Sequence"', but attempting to pass the values raised 'TypeError: index() takes exactly one argument (3 given)'.
History
Date User Action Args
2021-04-14 04:11:46ktbarrettsetrecipients: + ktbarrett
2021-04-14 04:11:46ktbarrettsetmessageid: <1618373506.04.0.457958304296.issue43836@roundup.psfhosted.org>
2021-04-14 04:11:45ktbarrettlinkissue43836 messages
2021-04-14 04:11:45ktbarrettcreate