fixed type errors when pylance type checking mode is strict.

This commit is contained in:
2023-07-19 21:47:47 +09:00
parent 23025bd679
commit 08d8a0626a
24 changed files with 387 additions and 236 deletions

View File

@ -1,4 +1,4 @@
from typing import Final, NamedTuple
from typing import Any, Final, NamedTuple
from unicodedata import normalize
from pydantic.dataclasses import dataclass
@ -66,7 +66,7 @@ class FolderSimple:
@dataclass(frozen=True)
class Folder(FolderSimple):
metadata: list[dict]
metadata: list[dict[str, Any]]
sub_folders: list[FolderSimple]
files: list[File]
path: str