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):
74
74
75
75
if key == "annotations" :
76
76
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
+ )
81
81
82
82
def __getitem__ (self , key ):
83
83
"""
@@ -91,10 +91,10 @@ def __getitem__(self, key):
91
91
92
92
if key == "annotations" :
93
93
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
+ )
98
98
99
99
def __iter__ (self ):
100
100
"""
You can’t perform that action at this time.
0 commit comments