diff --git a/src/extract_otp_secrets.py b/src/extract_otp_secrets.py index 166332d..6bdbf8f 100644 --- a/src/extract_otp_secrets.py +++ b/src/extract_otp_secrets.py @@ -89,11 +89,11 @@ except ImportError: # Types Args = argparse.Namespace OtpUrl = str -# PYTHON 3.11: Otp = TypedDict('Otp', {'name': str, 'secret': str, 'issuer': str, 'type': str, 'counter': int | None, 'url': OtpUrl}) +# PYTHON > 3.7: Otp = TypedDict('Otp', {'name': str, 'secret': str, 'issuer': str, 'type': str, 'counter': int | None, 'url': OtpUrl}) Otp = TypedDict('Otp', {'name': str, 'secret': str, 'issuer': str, 'type': str, 'counter': Union[int, None], 'url': OtpUrl}) -# PYTHON 3.11: Otps = list[Otp] +# PYTHON > 3.9: Otps = list[Otp] Otps = List[Otp] -# PYTHON 3.11: OtpUrls = list[OtpUrl] +# PYTHON > 3.9: OtpUrls = list[OtpUrl] OtpUrls = List[OtpUrl]