Another Compatibility fix for Python 3.7 because I deserve

This commit is contained in:
Karim shoair
2024-10-14 00:37:15 +03:00
parent 227d52a86b
commit c89fc88f5e
+2 -2
View File
@@ -20,7 +20,7 @@ class StorageSystemMixin(ABC):
"""
self.url = url
@cache
@cache(None, typed=True)
def _get_base_url(self, default_value: str = 'default') -> str:
if not self.url or type(self.url) is not str:
return default_value
@@ -52,7 +52,7 @@ class StorageSystemMixin(ABC):
raise NotImplementedError('Storage system must implement `save` method')
@staticmethod
@cache
@cache(None, typed=True)
def _get_hash(identifier: str) -> str:
"""If you want to hash identifier in your storage system, use this safer"""
identifier = identifier.lower().strip()