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

Class StackEffect

Tools/cases_generator/parsing.py:248–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246
247@dataclass
248class StackEffect(Node):
249 name: str = field(compare=False) # __eq__ only uses type, cond, size
250 size: str = "" # Optional `[size]`
251 # Note: size cannot be combined with type or cond
252
253 def __repr__(self) -> str:
254 items = [self.name, self.size]
255 while items and items[-1] == "":
256 del items[-1]
257 return f"StackEffect({', '.join(repr(item) for item in items)})"
258
259
260@dataclass

Callers 1

stack_effectMethod · 0.70

Calls 1

fieldFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…