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

Method __or__

Lib/os.py:755–760  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

753 return self
754
755 def __or__(self, other):
756 if not isinstance(other, Mapping):
757 return NotImplemented
758 new = dict(self)
759 new.update(other)
760 return new
761
762 def __ror__(self, other):
763 if not isinstance(other, Mapping):

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected