🛠️ Ruff errors refactored.

This commit is contained in:
Robert Honz
2024-01-12 11:20:10 +01:00
parent 87091fb060
commit 677bca872e
5 changed files with 19 additions and 10 deletions
+4 -1
View File
@@ -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):
"""