Skip to content

Commit c097ec9

Browse files
committed
[Python API] Fix some PVS type hints
1 parent 8516ebe commit c097ec9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

python/variable.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# IN THE SOFTWARE.
2121

2222
import ctypes
23-
from typing import List, Generator, Optional, Union, Set, Dict, Tuple
23+
from typing import Iterable, List, Generator, Optional, Union, Set, Dict, Tuple
2424
from dataclasses import dataclass
2525

2626
import binaryninja
@@ -601,11 +601,11 @@ def unsigned_range_value(ranges: List[ValueRange]) -> 'PossibleValueSet':
601601
return result
602602

603603
@staticmethod
604-
def in_set_of_values(values: List[int]) -> 'PossibleValueSet':
604+
def in_set_of_values(values: Iterable[int]) -> 'PossibleValueSet':
605605
"""
606606
Create a PossibleValueSet object for a value in a set of values.
607607
608-
:param list(int) values: List of integer values
608+
:param Iterable[int] values: Iterable of integer values
609609
:rtype: PossibleValueSet
610610
"""
611611
result = PossibleValueSet()
@@ -615,11 +615,11 @@ def in_set_of_values(values: List[int]) -> 'PossibleValueSet':
615615
return result
616616

617617
@staticmethod
618-
def not_in_set_of_values(values: List[int]) -> 'PossibleValueSet':
618+
def not_in_set_of_values(values: Iterable[int]) -> 'PossibleValueSet':
619619
"""
620620
Create a PossibleValueSet object for a value NOT in a set of values.
621621
622-
:param list(int) values: List of integer values
622+
:param Iterable[int] values: Iterable of integer values
623623
:rtype: PossibleValueSet
624624
"""
625625
result = PossibleValueSet()

0 commit comments

Comments
 (0)