downgrade the last 3.9 type hints

This commit is contained in:
Matthew Donoughe 2022-10-20 20:03:38 -04:00
parent c85de90819
commit 24d6ac1f52
No known key found for this signature in database
GPG Key ID: 838812402CA8C19D
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ from contextlib import suppress
from ftplib import FTP
from io import BytesIO
from pathlib import Path
from typing import Optional
from typing import DefaultDict, Optional, Set
from urllib.parse import urlparse
from itemadapter import ItemAdapter
@ -46,7 +46,7 @@ class FSFilesStore:
basedir = basedir.split('://', 1)[1]
self.basedir = basedir
self._mkdir(Path(self.basedir))
self.created_directories: defaultdict[str, set[str]] = defaultdict(set)
self.created_directories: DefaultDict[str, Set[str]] = defaultdict(set)
def persist_file(self, path: str, buf, info, meta=None, headers=None):
absolute_path = self._get_filesystem_path(path)