dify/api/core/datasource
EvanYao826 422ebf59ea refactor: clean unnecessary | None annotations in entities (#35557)
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)'
2026-06-18 15:23:08 +08:00
..
__base test: add test for api core datasource (#32414) 2026-03-11 03:12:46 +08:00
entities refactor: clean unnecessary | None annotations in entities (#35557) 2026-06-18 15:23:08 +08:00
local_file refactor: add missing @override decorator to datasource plugin classes (#36494) 2026-05-21 19:41:42 +00:00
online_document refactor: add missing @override decorator to datasource plugin classes (#36494) 2026-05-21 19:41:42 +00:00
online_drive refactor: add missing @override decorator to datasource plugin classes (#36494) 2026-05-21 19:41:42 +00:00
utils chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
website_crawl refactor: add missing @override decorator to datasource plugin classes (#36494) 2026-05-21 19:41:42 +00:00
__init__.py feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
datasource_file_manager.py fix(api): centralize remote file retrieval (#36399) 2026-06-01 09:25:08 +00:00
datasource_manager.py chore(api): adapt Graphon 0.2.2 upgrade (#35377) 2026-04-18 11:16:24 +00:00
errors.py feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00