(self, initial_state: BranchState | None = None)
| 81 | |
| 82 | class 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) |
nothing calls this directly
no test coverage detected