summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
authorMaja Kądziołka <maya@compilercrim.es>2023-05-19 15:58:13 +0200
committerPeter LaFosse <peter@vector35.com>2023-05-26 13:42:22 -0400
commit0c63f927ead0f78184a7526ce1c707a88e7f52ad (patch)
treeafa3cfc44de9d20989750ad47c5342510640aac9 /python/binaryview.py
parenta05596610bbbe9274d9300882fbbbfb41eec107d (diff)
Add some missing type annotations
Diffstat (limited to 'python/binaryview.py')
-rw-r--r--python/binaryview.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index fa98e5cd..68263acd 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -2052,7 +2052,7 @@ class BinaryView:
self._platform = None
self._endianness = None
- def __enter__(self):
+ def __enter__(self) -> 'BinaryView':
return self
def __exit__(self, type, value, traceback):
@@ -5266,7 +5266,7 @@ class BinaryView:
def __init__(self, view: 'BinaryView'):
self._view = view
- def __enter__(self):
+ def __enter__(self) -> None:
core.BNBeginBulkModifySymbols(self._view.handle)
def __exit__(self, type, value, traceback):