add version to PYTHON todos

This commit is contained in:
scito
2022-12-30 21:22:03 +01:00
parent 97e4f084cb
commit 3f3903cc81

View File

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