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

Method __add__

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

Source from the content-addressed store, hash-verified

589 # Shorthand for Integer addition and subtraction. This is not
590 # meant to ever support addition/subtraction of addresses.
591 def __add__(self, other):
592 if not isinstance(other, int):
593 return NotImplemented
594 return self.__class__(int(self) + other)
595
596 def __sub__(self, other):
597 if not isinstance(other, int):

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
__class__Method · 0.45

Tested by

no test coverage detected