mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 11:56:53 +08:00
chore: avoid implicit optional in type annotations of method (#8727)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
from typing import Optional
|
||||
|
||||
from core.model_runtime.entities.llm_entities import LLMResult
|
||||
from core.model_runtime.entities.message_entities import PromptMessage, SystemPromptMessage, UserPromptMessage
|
||||
from core.tools.entities.tool_entities import ToolProviderType
|
||||
@@ -124,7 +126,7 @@ class BuiltinTool(Tool):
|
||||
|
||||
return result
|
||||
|
||||
def get_url(self, url: str, user_agent: str = None) -> str:
|
||||
def get_url(self, url: str, user_agent: Optional[str] = None) -> str:
|
||||
"""
|
||||
get url
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user