chore: avoid implicit optional in type annotations of method (#8727)
This commit is contained in:
parent
b360feb4c1
commit
240b66d737
37 changed files with 91 additions and 71 deletions
|
|
@ -341,7 +341,7 @@ class ToolRuntimeVariablePool(BaseModel):
|
|||
|
||||
self.pool.append(variable)
|
||||
|
||||
def set_file(self, tool_name: str, value: str, name: str = None) -> None:
|
||||
def set_file(self, tool_name: str, value: str, name: Optional[str] = None) -> None:
|
||||
"""
|
||||
set an image variable
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue