MCPcopy Index your code
hub / github.com/python/mypy / __init__

Method __init__

mypy/partially_defined.py:83–92  ·  view source on GitHub ↗
(self, initial_state: BranchState | None = None)

Source from the content-addressed store, hash-verified

81
82class BranchStatement:
83 def __init__(self, initial_state: BranchState | None = None) -> None:
84 if initial_state is None:
85 initial_state = BranchState()
86 self.initial_state = initial_state
87 self.branches: list[BranchState] = [
88 BranchState(
89 must_be_defined=self.initial_state.must_be_defined,
90 may_be_defined=self.initial_state.may_be_defined,
91 )
92 ]
93
94 def copy(self) -> BranchStatement:
95 result = BranchStatement(self.initial_state)

Callers

nothing calls this directly

Calls 1

BranchStateClass · 0.85

Tested by

no test coverage detected