diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-11-23 09:01:36 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-11-29 10:09:09 -0500 |
| commit | 8d2420becf3f4e787f6809aa9c6609fe7bc3c08b (patch) | |
| tree | 9d60fa0fea779923c84bf2fc6bc5fa56c54d0e82 /python/lowlevelil.py | |
| parent | 2959d69e86eacf0de78703d48217215deb507cd4 (diff) | |
Minor type hint improvements to lowlevelil.py
Diffstat (limited to 'python/lowlevelil.py')
| -rw-r--r-- | python/lowlevelil.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py index 6130baa3..e131f187 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -72,6 +72,7 @@ LowLevelILOperandType = Union[ List['SSARegisterStack'], List['SSAFlag'], List['SSARegisterOrFlag'], + None ] class LowLevelILLabel: @@ -2875,8 +2876,8 @@ class LowLevelILFunction: self._source_function = value @property - def view(self) -> 'binaryview.BinaryView': - return self.source_function.view + def view(self) -> Optional['binaryview.BinaryView']: + return self.source_function.view if self.source_function else None @property def il_form(self) -> FunctionGraphType: |
