в ruff включён набор UP: современный синтаксис аннотаций

- typing.Dict/List заменены на dict/list, Optional[X] — на X | None;
  эти же места подсвечивал basedpyright в редакторе
- из smtp-convert-secret-key-to-password.py убрана проверка на Python 2
This commit is contained in:
av
2026-08-22 11:37:51 +03:00
parent bdc319df64
commit b5b43a484e
3 changed files with 55 additions and 58 deletions
@@ -27,7 +27,6 @@ import hmac
import hashlib
import base64
import argparse
import sys
# These values are required to calculate the signature. Do not change them.
@@ -55,9 +54,6 @@ def calculate_key(secret_access_key: str) -> str:
def main() -> None:
if sys.version_info[0] < 3:
raise Exception("Must be using Python 3")
parser = argparse.ArgumentParser(
description="Convert a Secret Access Key to an SMTP password."
)