dify/api/core/rag/extractor
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
..
blob chore: add missing @override decorator to api/core/rag/extractor (#37013) 2026-06-03 12:34:10 +00:00
entity refactor: clean unnecessary | None annotations in entities (#35557) 2026-06-18 15:23:08 +08:00
firecrawl chore: add missing @override decorator to api/core/rag/extractor (#37013) 2026-06-03 12:34:10 +00:00
unstructured chore: add missing @override decorator to api/core/rag/extractor (#37013) 2026-06-03 12:34:10 +00:00
watercrawl fix(watercrawl): accept content type parameters (#37500) 2026-06-16 08:16:24 +00:00
csv_extractor.py chore: add missing @override decorator to api/core/rag/extractor (#37013) 2026-06-03 12:34:10 +00:00
excel_extractor.py feat(api): support embedded Excel images in knowledge import (#37104) 2026-06-08 01:26:07 +00:00
extract_processor.py feat(api): support embedded Excel images in knowledge import (#37104) 2026-06-08 01:26:07 +00:00
extractor_base.py chore(api/core): apply ruff reformatting (#7624) 2024-09-10 17:00:20 +08:00
helpers.py fix: detect_file_encodings TypeError: tuple indices must be integers or slices, not str (#29595) 2025-12-17 13:58:05 +08:00
html_extractor.py chore: add missing @override decorator to api/core/rag/extractor (#37013) 2026-06-03 12:34:10 +00:00
jina_reader_extractor.py chore: add missing @override decorator to api/core/rag/extractor (#37013) 2026-06-03 12:34:10 +00:00
markdown_extractor.py chore: add missing @override decorator to api/core/rag/extractor (#37013) 2026-06-03 12:34:10 +00:00
notion_extractor.py chore: add missing @override decorator to api/core/rag/extractor (#37013) 2026-06-03 12:34:10 +00:00
pdf_extractor.py chore: add missing @override decorator to api/core/rag/extractor (#37013) 2026-06-03 12:34:10 +00:00
text_extractor.py chore: add missing @override decorator to api/core/rag/extractor (#37013) 2026-06-03 12:34:10 +00:00
word_extractor.py chore(api): Fix several typing errors (#37237) 2026-06-12 01:36:48 +00:00