summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/helper/decorator.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-01-12 11:20:10 +0100
committerRobert Honz <exislow+github@gmail.com>2024-01-12 11:20:10 +0100
commit677bca872e31e295aeba0a14fde5b4ec81983358 (patch)
tree05f4eded45a5ba3609af0c22f2120b217190b6c2 /tidal_dl_ng/helper/decorator.py
parent87091fb060ec263c1e9cfa71c086c995c85e65cc (diff)
downloadtidal-dl-ng-677bca872e31e295aeba0a14fde5b4ec81983358.tar.gz
🛠️ Ruff errors refactored.
Diffstat (limited to 'tidal_dl_ng/helper/decorator.py')
-rw-r--r--tidal_dl_ng/helper/decorator.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tidal_dl_ng/helper/decorator.py b/tidal_dl_ng/helper/decorator.py
index 545f73b..ba0f417 100644
--- a/tidal_dl_ng/helper/decorator.py
+++ b/tidal_dl_ng/helper/decorator.py
@@ -1,3 +1,6 @@
+from typing import ClassVar
+
+
class SingletonMeta(type):
"""
The Singleton class can be implemented in different ways in Python. Some
@@ -5,7 +8,7 @@ class SingletonMeta(type):
metaclass because it is best suited for this purpose.
"""
- _instances = {}
+ _instances: ClassVar[dict] = {}
def __call__(cls, *args, **kwargs):
"""