dify/api/core/plugin/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
base.py Introduce Plugins (#13836) 2025-02-17 17:05:13 +08:00
bundle.py Introduce Plugins (#13836) 2025-02-17 17:05:13 +08:00
endpoint.py refactor: clean unnecessary | None annotations in entities (#35557) 2026-06-18 15:23:08 +08:00
marketplace.py chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
oauth.py refactor(api): tighten types for Tenant.custom_config_dict and MCPToolProvider.headers (#34698) 2026-04-08 01:36:42 +00:00
parameters.py refactor: replace if isinstance with match case (#37412) 2026-06-14 13:00:01 +00:00
plugin_daemon.py feat(web): refine onboarding UI (#37433) 2026-06-15 08:47:15 +00:00
plugin.py refactor: clean unnecessary | None annotations in entities (#35557) 2026-06-18 15:23:08 +08:00
request.py refactor: clean unnecessary | None annotations in entities (#35557) 2026-06-18 15:23:08 +08:00