MCPcopy Index your code
hub / github.com/python/cpython / __add__

Method __add__

Tools/cases_generator/stack.py:86–91  ·  view source on GitHub ↗
(self, other: "PointerOffset")

Source from the content-addressed store, hash-verified

84 )
85
86 def __add__(self, other: "PointerOffset") -> "PointerOffset":
87 return PointerOffset.create(
88 self.numeric + other.numeric,
89 self.positive + other.positive,
90 self.negative + other.negative
91 )
92
93 def __neg__(self) -> "PointerOffset":
94 return PointerOffset(-self.numeric, self.negative, self.positive)

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected