MCPcopy Create free account
hub / github.com/python/mypy / __init__

Method __init__

mypyc/ir/ops.py:637–647  ·  view source on GitHub ↗
(self, fn: FuncDecl, args: Sequence[Value], line: int)

Source from the content-addressed store, hash-verified

635 """
636
637 def __init__(self, fn: FuncDecl, args: Sequence[Value], line: int) -> None:
638 self.fn = fn
639 self.args = list(args)
640 assert len(self.args) == len(fn.sig.args)
641 self.type = fn.sig.ret_type
642 ret_type = fn.sig.ret_type
643 if not ret_type.error_overlap:
644 self.error_kind = ERR_MAGIC
645 else:
646 self.error_kind = ERR_MAGIC_OVERLAPPING
647 super().__init__(line)
648
649 def sources(self) -> list[Value]:
650 return list(self.args.copy())

Callers

nothing calls this directly

Calls 3

listClass · 0.85
lenFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected