aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-02-10 14:53:12 +0100
committerHarald Welte <laforge@osmocom.org>2022-02-10 14:53:56 +0100
commitaaf5931b604381216e94154af05478f39cfa0ac4 (patch)
tree36bba4ed43e5b6ac353a872d3cb43605e6d1ed00
parent6113fe99291605cd4a05416df1a3ef75d5493636 (diff)
ts_51_011: Fix type annotation for Tuple[int, int]
Thanks to Vadim for pointing this out. Change-Id: I7ee1309331902bafab3c9fc6bc33ca713f8c7832
-rw-r--r--pySim/ts_51_011.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py
index a7f9f97..dd7b788 100644
--- a/pySim/ts_51_011.py
+++ b/pySim/ts_51_011.py
@@ -325,6 +325,7 @@ EF_SST_map = {
from pySim.utils import *
from pySim.tlv import *
+from typing import Tuple
from struct import pack, unpack
from construct import *
from construct import Optional as COptional
@@ -528,7 +529,7 @@ class EF_ServiceTable(TransparentEF):
super().__init__(fid, sfid=sfid, name=name, desc=desc, size=size)
self.table = table
@staticmethod
- def _bit_byte_offset_for_service(service:int) -> (int, int):
+ def _bit_byte_offset_for_service(service:int) -> Tuple[int, int]:
i = service - 1
byte_offset = i//4
bit_offset = (i % 4) * 2