MCPcopy Index your code
hub / github.com/RustPython/RustPython / __or__

Method __or__

Lib/collections/__init__.py:1111–1116  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

1109 return self
1110
1111 def __or__(self, other):
1112 if not isinstance(other, _collections_abc.Mapping):
1113 return NotImplemented
1114 m = self.copy()
1115 m.maps[0].update(other)
1116 return m
1117
1118 def __ror__(self, other):
1119 if not isinstance(other, _collections_abc.Mapping):

Callers

nothing calls this directly

Calls 3

copyMethod · 0.95
isinstanceFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected