Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
In#88089 (comment)@gvanrossum suggested to set__class_getitem__ = None if we want to make a subclass of indexable class (liketuple ordict) non-indexable. Indeed, it causes indexing to raise a TypeError, but with general message: "'NoneType' object is not callable".
It could be improved.