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

Method __sub__

Lib/ipaddress.py:596–599  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

594 return self.__class__(int(self) + other)
595
596 def __sub__(self, other):
597 if not isinstance(other, int):
598 return NotImplemented
599 return self.__class__(int(self) - other)
600
601 def __repr__(self):
602 return '%s(%r)' % (self.__class__.__name__, str(self))

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
__class__Method · 0.45

Tested by

no test coverage detected