summaryrefslogtreecommitdiffstats
path: root/eos_downloader/__init__.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-09 08:18:57 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-09 08:18:57 +0000
commit3b64505c5a813b72307d14444390ffac9cccb0e5 (patch)
tree3e33d1ac888c55de4ded16a2a76b4add6f954ecc /eos_downloader/__init__.py
parentReleasing debian version 0.10.2-1. (diff)
downloadeos-downloader-3b64505c5a813b72307d14444390ffac9cccb0e5.tar.xz
eos-downloader-3b64505c5a813b72307d14444390ffac9cccb0e5.zip
Merging upstream version 0.10.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'eos_downloader/__init__.py')
-rw-r--r--eos_downloader/__init__.py7
1 files changed, 6 insertions, 1 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)