Skip to content

Commit

Permalink
fix wrong type annotations for KCFG.NDBranch
Browse files Browse the repository at this point in the history
  • Loading branch information
pxhdev committed Oct 13, 2024
1 parent 5b3bdb5 commit d7647ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyk/src/pyk/kcfg/kcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def replace_target(self, node: KCFG.Node) -> KCFG.NDBranch:
_merged_edges: dict[int, MergedEdge]
_covers: dict[int, Cover]
_splits: dict[int, Split]
_ndbranches: dict[int, NDBranch]
_ndbranches: dict[int, KCFG.NDBranch]
_aliases: dict[str, int]
_lock: RLock

Expand Down Expand Up @@ -1063,7 +1063,7 @@ def create_split_by_nodes(self, source_id: NodeIdLike, target_ids: Iterable[Node
return None
return self.create_split(source.id, zip(target_ids, csubsts, strict=True))

def ndbranches(self, *, source_id: NodeIdLike | None = None, target_id: NodeIdLike | None = None) -> list[NDBranch]:
def ndbranches(self, *, source_id: NodeIdLike | None = None, target_id: NodeIdLike | None = None) -> list[KCFG.NDBranch]:
source_id = self._resolve(source_id) if source_id is not None else None
target_id = self._resolve(target_id) if target_id is not None else None
return [
Expand All @@ -1072,7 +1072,7 @@ def ndbranches(self, *, source_id: NodeIdLike | None = None, target_id: NodeIdLi
if (source_id is None or source_id == b.source.id) and (target_id is None or target_id in b.target_ids)
]

def contains_ndbranch(self, ndbranch: NDBranch) -> bool:
def contains_ndbranch(self, ndbranch: KCFG.NDBranch) -> bool:
return ndbranch in self._ndbranches

def create_ndbranch(
Expand Down

0 comments on commit d7647ea

Please sign in to comment.