Fix typing on function
This commit is contained in:
parent
4b195f2b53
commit
e672e28a12
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ class Resource:
|
|||
def create_hash(self):
|
||||
self.hash = hashlib.md5(self.content)
|
||||
|
||||
def _determine_extension(self) -> str:
|
||||
def _determine_extension(self) -> Optional[str]:
|
||||
extension_pattern = re.compile(r'.*(\..{3,5})(?:\?.*)?$')
|
||||
match = re.search(extension_pattern, self.url)
|
||||
if match:
|
||||
|
|
Loading…
Reference in a new issue