SIGN IN SIGN UP

bpo-36972: Add SupportsIndex (GH-13448)

In order to support typing checks calling hex(), oct() and bin() on user-defined classes, a SupportIndex protocol is required. The ability to check these at runtime would be good to add for completeness sake. This is pretty much just a copy of SupportsInt with the names tweaked.
P
Paul Dagnelie committed
4c7a46eb3c009c85ddf2eb315d94d804745187d4
Parent: 33e71e0
Committed by Ivan Levkivskyi <levkivskyi@gmail.com> on 5/22/2019, 2:23:01 PM