laforge has uploaded this change for review.

View Change

ts_51_011: Fix type annotation for Tuple[int, int]

Thanks to Vadim for pointing this out.

Change-Id: I7ee1309331902bafab3c9fc6bc33ca713f8c7832
---
M pySim/ts_51_011.py
1 file changed, 2 insertions(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/31/27131/1
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 @@

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 @@
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

To view, visit change 27131. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I7ee1309331902bafab3c9fc6bc33ca713f8c7832
Gerrit-Change-Number: 27131
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge@osmocom.org>
Gerrit-MessageType: newchange