Skip to content

Commit b99ddc1

Browse files
authored
change chained maps to MutableMapping (#6044)
Fixes #6042
1 parent 4ef0781 commit b99ddc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/collections/__init__.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ class defaultdict(Dict[_KT, _VT], Generic[_KT, _VT]):
279279
def copy(self: _S) -> _S: ...
280280

281281
class ChainMap(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
282-
maps: list[Mapping[_KT, _VT]]
283-
def __init__(self, *maps: Mapping[_KT, _VT]) -> None: ...
284-
def new_child(self: Self, m: Mapping[_KT, _VT] | None = ...) -> Self: ...
282+
maps: list[MutableMapping[_KT, _VT]]
283+
def __init__(self, *maps: MutableMapping[_KT, _VT]) -> None: ...
284+
def new_child(self: Self, m: MutableMapping[_KT, _VT] | None = ...) -> Self: ...
285285
@property
286286
def parents(self: Self) -> Self: ...
287287
def __setitem__(self, k: _KT, v: _VT) -> None: ...

0 commit comments

Comments
 (0)