dify/api/services/entities
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
..
external_knowledge_entities refactor: replace bare dict with dict[str, Any] in entities, workflow nodes, and tasks (#35109) 2026-04-14 03:02:39 +00:00
knowledge_entities refactor: clean unnecessary | None annotations in entities (#35557) 2026-06-18 15:23:08 +08:00
__init__.py Model Runtime (#1858) 2024-01-02 23:42:00 +08:00
agent_entities.py refactor: agent draft (#37356) 2026-06-12 03:46:21 +00:00
auth_entities.py fix(api): fix invalid token error while changing email (#36412) 2026-05-20 05:51:15 +00:00
dsl_entities.py refactor(api): deduplicate DSL shared entities into dsl_entities.py (#34762) 2026-04-09 06:04:18 +00:00
knowledge_retrieval_inner.py feat(agent): wire knowledge base retrieval into runtime (#37577) 2026-06-17 09:27:38 +00:00
model_provider_entities.py feat(web): refine onboarding UI (#37433) 2026-06-15 08:47:15 +00:00