style: using isinstance function as the main way for type checking

This commit is contained in:
Karim shoair
2025-07-30 03:14:23 +03:00
parent ae9ccaec79
commit 5bb1266fa5
5 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class StorageSystemMixin(ABC):
@lru_cache(64, typed=True)
def _get_base_url(self, default_value: str = "default") -> str:
if not self.url or type(self.url) is not str:
if not self.url or not isinstance(self.url, str):
return default_value
try: