fixed type errors when pylance type checking mode is strict.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user