dify/api/core/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
..
__init__.py refactor(api): tighten types for Tenant.custom_config_dict and MCPToolProvider.headers (#34698) 2026-04-08 01:36:42 +00:00
agent_entities.py chore: adopt StrEnum and auto() for some string-typed enums (#25129) 2025-09-12 21:14:26 +08:00
document_task.py refactor: implement tenant self queue for rag tasks (#27559) 2025-11-06 21:25:50 +08:00
embedding_type.py refactor(api): rename dify_graph to graphon (#34095) 2026-03-25 21:58:56 +08:00
execution_extra_content.py feat(api): introduce select, file and file list form input types to Human Input node (#36322) 2026-06-04 01:54:28 +00:00
knowledge_entities.py refactor: replace bare dict with dict[str, Any] in provider entities and plugin client (#35077) 2026-04-13 17:09:25 +00:00
mcp_provider.py feat(api): add MCP user-identity forwarding (#36839) 2026-06-08 04:32:11 +00:00
model_entities.py refactor: fix OpenAPI contract generation schemas (#37387) 2026-06-12 14:25:53 +00:00
parameter_entities.py feat: introduce trigger functionality (#27644) 2025-11-12 17:59:37 +08:00
plugin_credential_type.py refactor(api): tighten types for Tenant.custom_config_dict and MCPToolProvider.headers (#34698) 2026-04-08 01:36:42 +00:00
provider_configuration.py perf(api): reduce workflow startup latency for chatflow (#36773) 2026-06-11 07:05:35 +00:00
provider_entities.py refactor: clean unnecessary | None annotations in entities (#35557) 2026-06-18 15:23:08 +08:00