fix: add setup.cfg mypy config, fix entry dict type annotation
- 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:
+2
-2
@@ -12,7 +12,7 @@ import re
|
||||
import logging
|
||||
import subprocess
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Optional
|
||||
from typing import Any, Optional
|
||||
from datetime import datetime, timezone
|
||||
|
||||
import requests
|
||||
@@ -354,7 +354,7 @@ def main() -> None:
|
||||
results = []
|
||||
|
||||
for ref, img in all_images.items():
|
||||
entry = {
|
||||
entry: dict[str, Any] = {
|
||||
"image": ref,
|
||||
"image_short": img.display_name,
|
||||
"current": img.tag,
|
||||
|
||||
Reference in New Issue
Block a user