Merging upstream version 0.10.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
801f1af336
commit
d1f683ede3
10 changed files with 45 additions and 46 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ class ObjectDownloader:
|
|||
token: str,
|
||||
software: str = "EOS",
|
||||
hash_method: str = "md5sum",
|
||||
):
|
||||
): # pylint: disable=R0917
|
||||
"""
|
||||
__init__ Class constructor
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue