Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit eda3dea

Browse files
Fix NDBranch typing.
1 parent c9eb6f5 commit eda3dea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/pyk/kcfg/kcfg.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def replace_target(self, node: KCFG.Node) -> KCFG.NDBranch:
325325
_edges: dict[int, Edge]
326326
_covers: dict[int, Cover]
327327
_splits: dict[int, Split]
328-
_ndbranches: dict[int, NDBranch]
328+
_ndbranches: dict[int, KCFG.NDBranch]
329329
_vacuous: set[int]
330330
_stuck: set[int]
331331
_aliases: dict[str, int]
@@ -827,7 +827,9 @@ def create_split(self, source_id: NodeIdLike, splits: Iterable[tuple[NodeIdLike,
827827
self.add_successor(split)
828828
return split
829829

830-
def ndbranches(self, *, source_id: NodeIdLike | None = None, target_id: NodeIdLike | None = None) -> list[NDBranch]:
830+
def ndbranches(
831+
self, *, source_id: NodeIdLike | None = None, target_id: NodeIdLike | None = None
832+
) -> list[KCFG.NDBranch]:
831833
source_id = self._resolve(source_id) if source_id is not None else None
832834
target_id = self._resolve(target_id) if target_id is not None else None
833835
return [
@@ -836,7 +838,7 @@ def ndbranches(self, *, source_id: NodeIdLike | None = None, target_id: NodeIdLi
836838
if (source_id is None or source_id == b.source.id) and (target_id is None or target_id in b.target_ids)
837839
]
838840

839-
def contains_ndbranch(self, ndbranch: NDBranch) -> bool:
841+
def contains_ndbranch(self, ndbranch: KCFG.NDBranch) -> bool:
840842
return ndbranch in self._ndbranches
841843

842844
def create_ndbranch(

0 commit comments

Comments
 (0)