ch25: changed MicroEnum to use __class_getitem__

This commit is contained in:
Luciano Ramalho
2021-04-08 14:43:15 -03:00
parent c6a1da4882
commit bbc664308a
2 changed files with 3 additions and 6 deletions

View File

@@ -25,7 +25,6 @@ Testing ``KeyIsValueDict``::
class KeyIsValueDict(dict):
def __missing__(self, key):
if key.startswith('__') and key.endswith('__'):
raise KeyError(key)