fix typing

This commit is contained in:
jxxghp
2025-03-24 19:14:04 +08:00
parent 1918b0f192
commit 63049f61f7
6 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ class LocalStorage(StorageBase):
"""
return Path(fileitem.path)
def upload(self, fileitem: schemas.FileItem, path: Path, new_name: str = None) -> Optional[schemas.FileItem]:
def upload(self, fileitem: schemas.FileItem, path: Path, new_name: Optional[str] = None) -> Optional[schemas.FileItem]:
"""
上传文件
:param fileitem: 上传目录项