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

Method __or__

Lib/weakref.py:424–429  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

422 return self
423
424 def __or__(self, other):
425 if isinstance(other, _collections_abc.Mapping):
426 c = self.copy()
427 c.update(other)
428 return c
429 return NotImplemented
430
431 def __ror__(self, other):
432 if 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