File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,10 @@ def __delitem__(self, key):
7474
7575 if key == "annotations" :
7676 self ._annotations .clear ()
77-
78- raise KeyError (
79- f"'{ self .__class__ .__name__ } ' object is not subscriptable except for keys: { _SUPPORTED_MAPPING_KEYS } "
80- )
77+ else :
78+ raise KeyError (
79+ f"'{ self .__class__ .__name__ } ' object is not subscriptable except for keys: { _SUPPORTED_MAPPING_KEYS } "
80+ )
8181
8282 def __getitem__ (self , key ):
8383 """
@@ -91,10 +91,10 @@ def __getitem__(self, key):
9191
9292 if key == "annotations" :
9393 return self ._annotations
94- else :
95- raise KeyError (
96- f"'{ self .__class__ .__name__ } ' object is not subscriptable except for keys: { _SUPPORTED_MAPPING_KEYS } "
97- )
94+
95+ raise KeyError (
96+ f"'{ self .__class__ .__name__ } ' object is not subscriptable except for keys: { _SUPPORTED_MAPPING_KEYS } "
97+ )
9898
9999 def __iter__ (self ):
100100 """
You can’t perform that action at this time.
0 commit comments