mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-17 02:48:34 +03:00
ts_51_011: Fix type annotation for Tuple[int, int]
Thanks to Vadim for pointing this out. Change-Id: I7ee1309331902bafab3c9fc6bc33ca713f8c7832
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user