ch25: changed MicroEnum to use __class_getitem__
This commit is contained in:
@@ -25,7 +25,6 @@ Testing ``KeyIsValueDict``::
|
||||
|
||||
|
||||
class KeyIsValueDict(dict):
|
||||
|
||||
def __missing__(self, key):
|
||||
if key.startswith('__') and key.endswith('__'):
|
||||
raise KeyError(key)
|
||||
|
||||
Reference in New Issue
Block a user