MCPcopy Index your code
hub / github.com/python/cpython / __or__

Method __or__

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

Source from the content-addressed store, hash-verified

1150 return self
1151
1152 def __or__(self, other):
1153 if not isinstance(other, _collections_abc.Mapping):
1154 return NotImplemented
1155 m = self.copy()
1156 m.maps[0].update(other)
1157 return m
1158
1159 def __ror__(self, other):
1160 if not isinstance(other, _collections_abc.Mapping):

Callers

nothing calls this directly

Calls 2

copyMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected