diff options
| author | Josh Ferrell <josh@vector35.com> | 2026-05-12 12:18:27 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2026-05-12 12:18:35 -0400 |
| commit | c097ec99b090bf82c148cdb459ac343b501a0206 (patch) | |
| tree | 975a1dd26475a44a322d48a3b9461af232caae0f /python | |
| parent | 8516ebe292a52e5da28fcc57137308cea46192b2 (diff) | |
[Python API] Fix some PVS type hints
Diffstat (limited to 'python')
| -rw-r--r-- | python/variable.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python/variable.py b/python/variable.py index 5ae87a89..878c1cc7 100644 --- a/python/variable.py +++ b/python/variable.py @@ -20,7 +20,7 @@ # IN THE SOFTWARE. import ctypes -from typing import List, Generator, Optional, Union, Set, Dict, Tuple +from typing import Iterable, List, Generator, Optional, Union, Set, Dict, Tuple from dataclasses import dataclass import binaryninja @@ -601,11 +601,11 @@ class PossibleValueSet: return result @staticmethod - def in_set_of_values(values: List[int]) -> 'PossibleValueSet': + def in_set_of_values(values: Iterable[int]) -> 'PossibleValueSet': """ Create a PossibleValueSet object for a value in a set of values. - :param list(int) values: List of integer values + :param Iterable[int] values: Iterable of integer values :rtype: PossibleValueSet """ result = PossibleValueSet() @@ -615,11 +615,11 @@ class PossibleValueSet: return result @staticmethod - def not_in_set_of_values(values: List[int]) -> 'PossibleValueSet': + def not_in_set_of_values(values: Iterable[int]) -> 'PossibleValueSet': """ Create a PossibleValueSet object for a value NOT in a set of values. - :param list(int) values: List of integer values + :param Iterable[int] values: Iterable of integer values :rtype: PossibleValueSet """ result = PossibleValueSet() |
