Skip to content

Commit

Permalink
Another Compatibility fix for Python 3.7 because I deserve
Browse files Browse the repository at this point in the history
  • Loading branch information
D4Vinci committed Oct 13, 2024
1 parent 227d52a commit c89fc88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapling/storage_adaptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, url: Union[str, None] = None):
"""
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
Expand Down Expand Up @@ -52,7 +52,7 @@ def retrieve(self, identifier: str) -> Optional[Dict]:
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()
Expand Down

0 comments on commit c89fc88

Please sign in to comment.