Skip to content

Commit

Permalink
Merge pull request #433 from opencybersecurityalliance/kestrel2-hotfi…
Browse files Browse the repository at this point in the history
…x-typeguard-hidden-issue

fix a bug that typeguard (#422) cannot capture
  • Loading branch information
subbyte authored Nov 30, 2023
2 parents e26dce6 + fbcb7e0 commit caa8e6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages-nextgen/kestrel_core/src/kestrel/ir/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def get_nodes_by_type(self, ntype: type) -> Iterable[Instruction]:
return [n for n in self.nodes() if isinstance(n, ntype)]

def get_nodes_by_type_and_attributes(
self, ntype: type, attr2val: Mapping[str, Union[str, bool]]
self, ntype: type, attr2val: Mapping[str, Union[str, bool, int]]
) -> Iterable[Instruction]:
"""Get nodes by both type and attributes/values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def get_instruction_class(name: str) -> Type[Instruction]:


@typechecked
def instruction_from_dict(d: Mapping[str, Union[str, bool]]) -> Instruction:
def instruction_from_dict(d: Mapping[str, Union[str, bool, int]]) -> Instruction:
instruction_class = get_instruction_class(d["instruction"])
try:
instruction = instruction_class.from_dict(d)
Expand Down

0 comments on commit caa8e6a

Please sign in to comment.