diff --git a/pySim/utils.py b/pySim/utils.py index c6362fab..b5345802 100644 --- a/pySim/utils.py +++ b/pySim/utils.py @@ -7,7 +7,7 @@ import json import abc import string from io import BytesIO -from typing import Optional, List, Dict, Any, Tuple +from typing import Optional, List, Dict, Any, Tuple, NewType # Copyright (C) 2009-2010 Sylvain Munaut # Copyright (C) 2021 Harald Welte @@ -27,7 +27,7 @@ from typing import Optional, List, Dict, Any, Tuple # # just to differentiate strings of hex nibbles from everything else -Hexstr = str +Hexstr = NewType('Hexstr', str) def h2b(s: Hexstr) -> bytearray: