fix: add setup.cfg mypy config, fix entry dict type annotation
CI/CD / lint-test (push) Failing after 58s
CI/CD / build-push (push) Has been skipped

- setup.cfg: configure mypy to disable import-untyped errors (requests,
  kubernetes lack stubs) and ignore kubernetes attr errors
- check_versions.py: annotate entry dict as dict[str, Any] to resolve
  type errors on entry["image"] and entry["latest"] in mirror loop
This commit is contained in:
claude-code
2026-07-12 16:24:08 +00:00
parent a2aa42d62a
commit 0ad3d5fd4e
2 changed files with 11 additions and 2 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import re
import logging import logging
import subprocess import subprocess
from dataclasses import dataclass, field from dataclasses import dataclass, field
from typing import Optional from typing import Any, Optional
from datetime import datetime, timezone from datetime import datetime, timezone
import requests import requests
@@ -354,7 +354,7 @@ def main() -> None:
results = [] results = []
for ref, img in all_images.items(): for ref, img in all_images.items():
entry = { entry: dict[str, Any] = {
"image": ref, "image": ref,
"image_short": img.display_name, "image_short": img.display_name,
"current": img.tag, "current": img.tag,
+9
View File
@@ -0,0 +1,9 @@
[mypy]
ignore_missing_imports = True
disable_error_code = import-untyped
[mypy-kubernetes]
ignore_errors = True
[mypy-kubernetes.*]
ignore_errors = True