Skip to content

Commit 27b6bb8

Browse files
ShaharNavehproost
authored andcommitted
DOC: Added "Raises KeyError" (pandas-dev#30014)
1 parent f0e8cce commit 27b6bb8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/compat/chainmap.py

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ def __setitem__(self, key, value):
1010
self.maps[0][key] = value
1111

1212
def __delitem__(self, key):
13+
"""
14+
Raises
15+
------
16+
KeyError
17+
If `key` doesn't exist.
18+
"""
1319
for mapping in self.maps:
1420
if key in mapping:
1521
del mapping[key]

0 commit comments

Comments
 (0)