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

Method __or__

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

Source from the content-addressed store, hash-verified

329 return self
330
331 def __or__(self, other):
332 if not isinstance(other, dict):
333 return NotImplemented
334 new = self.__class__(self)
335 new.update(other)
336 return new
337
338 def __ror__(self, other):
339 if not isinstance(other, dict):

Callers

nothing calls this directly

Calls 3

isinstanceFunction · 0.85
__class__Method · 0.45
updateMethod · 0.45

Tested by

no test coverage detected