summaryrefslogtreecommitdiffstats
path: root/eos_downloader
diff options
context:
space:
mode:
Diffstat (limited to 'eos_downloader')
-rw-r--r--eos_downloader/__init__.py7
-rw-r--r--eos_downloader/cli/get/commands.py1
-rw-r--r--eos_downloader/cli/info/commands.py2
-rw-r--r--eos_downloader/object_downloader.py2
4 files changed, 9 insertions, 3 deletions
diff --git a/eos_downloader/__init__.py b/eos_downloader/__init__.py
index 4507a70..c5db979 100644
--- a/eos_downloader/__init__.py
+++ b/eos_downloader/__init__.py
@@ -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)
diff --git a/eos_downloader/cli/get/commands.py b/eos_downloader/cli/get/commands.py
index 498473a..a622629 100644
--- a/eos_downloader/cli/get/commands.py
+++ b/eos_downloader/cli/get/commands.py
@@ -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
diff --git a/eos_downloader/cli/info/commands.py b/eos_downloader/cli/info/commands.py
index 64097a1..f64ff5d 100644
--- a/eos_downloader/cli/info/commands.py
+++ b/eos_downloader/cli/info/commands.py
@@ -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.
diff --git a/eos_downloader/object_downloader.py b/eos_downloader/object_downloader.py
index 3a22312..e62fa88 100644
--- a/eos_downloader/object_downloader.py
+++ b/eos_downloader/object_downloader.py
@@ -59,7 +59,7 @@ class ObjectDownloader:
token: str,
software: str = "EOS",
hash_method: str = "md5sum",
- ):
+ ): # pylint: disable=R0917
"""
__init__ Class constructor