summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2022-12-08 08:32:26 -0500
committerKyle Martin <krm504@nyu.edu>2023-02-08 15:07:26 -0500
commitec195e9aa57ce64d50192c4812e2ac0f02037add (patch)
tree3addced56b017e67af9cb708f8c17ae7c9822c6d /python
parent95129706bcbaaf9c651b0226cd68561d2dd58387 (diff)
Update binaryview.py
Add 'Optional' type hint to `seek`
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index c33d82c4..c2c57cb4 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -8460,7 +8460,7 @@ class BinaryReader:
return None
return struct.unpack(">Q", result)[0]
- def seek(self, offset: int, whence: int = 0) -> None:
+ def seek(self, offset: int, whence: Optional[int] = 0) -> None:
"""
``seek`` update internal offset to ``offset``.