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

Method __init__

mypyc/ir/ops.py:499–508  ·  view source on GitHub ↗
(
        self, value: Value, line: int = -1, *, yield_target: BasicBlock | None = None
    )

Source from the content-addressed store, hash-verified

497 error_kind = ERR_NEVER
498
499 def __init__(
500 self, value: Value, line: int = -1, *, yield_target: BasicBlock | None = None
501 ) -> None:
502 super().__init__(line)
503 self.value = value
504 # If this return is created by a yield, keep track of the next
505 # basic block. This doesn't affect the code we generate but
506 # can feed into analysis that need to understand the
507 # *original* CFG.
508 self.yield_target = yield_target
509
510 def sources(self) -> list[Value]:
511 return [self.value]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected