mirror of
https://github.com/langgenius/dify.git
synced 2026-06-26 23:01:11 +08:00
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)' |
||
|---|---|---|
| .. | ||
| __base | ||
| builtin_tool | ||
| custom_tool | ||
| entities | ||
| mcp_tool | ||
| plugin_tool | ||
| utils | ||
| workflow_as_tool | ||
| __init__.py | ||
| errors.py | ||
| signature.py | ||
| tool_engine.py | ||
| tool_file_manager.py | ||
| tool_label_manager.py | ||
| tool_manager.py | ||