dify/api/core/callback_handler
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 FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
agent_tool_callback_handler.py refactor: clean unnecessary | None annotations in entities (#35557) 2026-06-18 15:23:08 +08:00
index_tool_callback_handler.py refactor(api): tighten types for Tenant.custom_config_dict and MCPToolProvider.headers (#34698) 2026-04-08 01:36:42 +00:00
workflow_tool_callback_handler.py chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00