mirror of
https://github.com/langgenius/dify.git
synced 2026-06-26 23:01:11 +08:00
Remove unnecessary '| None' type annotations where the default value already guarantees a non-None type. This is the second batch of cleanups following PR #36824. Patterns changed: - 'bool | None = False' -> 'bool = False' - 'bool | None = Field(default=False)' -> 'bool = Field(default=False)' - 'int | None = Field(default=0)' -> 'int = Field(default=0)' - 'float | None = Field(default=0.0)' -> 'float = Field(default=0.0)' - 'str | None = ""' -> 'str = ""' - 'str | None = Field(default="")' -> 'str = Field(default="")' - 'list[...] | None = Field(default_factory=list)' -> 'list[...] = Field(default_factory=list)' |
||
|---|---|---|
| .. | ||
| __base | ||
| entities | ||
| local_file | ||
| online_document | ||
| online_drive | ||
| utils | ||
| website_crawl | ||
| __init__.py | ||
| datasource_file_manager.py | ||
| datasource_manager.py | ||
| errors.py | ||