From 20ca2033ceef98b025fa61b071230b54bebb4bb2 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Tue, 22 Jul 2025 01:10:27 +0800 Subject: [PATCH] fix: mypy --- api/core/plugin/entities/plugin_daemon.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api/core/plugin/entities/plugin_daemon.py b/api/core/plugin/entities/plugin_daemon.py index 66ae354364..16ab661092 100644 --- a/api/core/plugin/entities/plugin_daemon.py +++ b/api/core/plugin/entities/plugin_daemon.py @@ -185,11 +185,8 @@ class PluginOAuthCredentialsResponse(BaseModel): metadata: Mapping[str, Any] = Field( default_factory=dict, description="The metadata of the OAuth, like avatar url, name, etc." ) - expires_at: int | None = Field(description="The expires at time of the credentials. UTC timestamp.") + expires_at: int = Field(default=-1, description="The expires at time of the credentials. UTC timestamp.") credentials: Mapping[str, Any] = Field(description="The credentials of the OAuth.") - expires_at: int = Field( - default=-1, description="The timestamp of the credentials expires at, -1 means never expires." - ) class PluginListResponse(BaseModel):