aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-02-10 15:23:36 +0100
committerHarald Welte <laforge@osmocom.org>2022-02-10 17:06:30 +0100
commit08b2499c35a1579c82f1cb08e0a9ceb80a23812a (patch)
tree9525812aa03a1115e87089485c574065da208906
parent50368771475eaaa3e97f99aeeb48fb15e85d7bab (diff)
utils.py: Fix some tuple type annotations
-rw-r--r--pySim/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pySim/utils.py b/pySim/utils.py
index 4eb539b..3e79034 100644
--- a/pySim/utils.py
+++ b/pySim/utils.py
@@ -161,7 +161,7 @@ def comprehensiontlv_encode_tag(tag) -> bytes:
# length value coding is equal to BER-TLV
-def comprehensiontlv_parse_one(binary:bytes) -> (dict, int, bytes, bytes):
+def comprehensiontlv_parse_one(binary:bytes) -> Tuple[dict, int, bytes, bytes]:
"""Parse a single TLV IE at the start of the given binary data.
Args:
binary : binary input data of BER-TLV length field
@@ -311,7 +311,7 @@ def bertlv_encode_len(length:int) -> bytes:
else:
raise ValueError("Length > 32bits not supported")
-def bertlv_parse_one(binary:bytes) -> (dict, int, bytes, bytes):
+def bertlv_parse_one(binary:bytes) -> Tuple[dict, int, bytes, bytes]:
"""Parse a single TLV IE at the start of the given binary data.
Args:
binary : binary input data of BER-TLV length field