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

Method create

Tools/cases_generator/stack.py:75–77  ·  view source on GitHub ↗
(numeric: int, positive: tuple[str, ...], negative: tuple[str, ...])

Source from the content-addressed store, hash-verified

73
74 @staticmethod
75 def create(numeric: int, positive: tuple[str, ...], negative: tuple[str, ...]) -> "PointerOffset":
76 positive, negative = PointerOffset._simplify(positive, negative)
77 return PointerOffset(numeric, positive, negative)
78
79 def __sub__(self, other: "PointerOffset") -> "PointerOffset":
80 return PointerOffset.create(

Callers 2

__sub__Method · 0.45
__add__Method · 0.45

Calls 2

PointerOffsetClass · 0.85
_simplifyMethod · 0.45

Tested by

no test coverage detected