1
0
Fork 0

Merging upstream version 0.10.3.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-05 13:52:40 +01:00
parent 801f1af336
commit d1f683ede3
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
10 changed files with 45 additions and 46 deletions

View file

@ -18,6 +18,11 @@ import importlib.metadata
import json
from typing import Any
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from _typeshed import DataclassInstance # noqa: F401
__author__ = "@titom73"
__email__ = "tom@inetsix.net"
__date__ = "2022-03-16"
@ -52,5 +57,5 @@ class EnhancedJSONEncoder(json.JSONEncoder):
def default(self, o: Any) -> Any:
if dataclasses.is_dataclass(o):
return dataclasses.asdict(o)
return dataclasses.asdict(o) # type: ignore
return super().default(o)

View file

@ -124,6 +124,7 @@ def eos(
latest: bool = False,
branch: Union[str, None] = None,
) -> int:
# pylint: disable=R0917
"""Download EOS image from Arista website"""
console = Console()
# Get from Context

View file

@ -71,7 +71,7 @@ def eos_versions(
latest: bool = False,
verbose: bool = False,
) -> None:
# pylint: disable = too-many-branches
# pylint: disable = too-many-branches, R0917
"""
List Available EOS version on Arista.com website.

View file

@ -59,7 +59,7 @@ class ObjectDownloader:
token: str,
software: str = "EOS",
hash_method: str = "md5sum",
):
): # pylint: disable=R0917
"""
__init__ Class constructor