Skip to content

Commit c789073

Browse files
committed
fix lints
1 parent 2ec0272 commit c789073

File tree

2 files changed

+116
-44
lines changed

2 files changed

+116
-44
lines changed

src/do_gradientai/types/__init__.py

Lines changed: 115 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,9 @@
1313
agent_retrieve_response,
1414
agent_update_status_response,
1515
)
16-
from .agents import evaluation_metrics
17-
from .agents.evaluation_metrics import workspaces
18-
from .agents.evaluation_metrics.workspaces import (
19-
agent_list_response, # type: ignore
20-
agent_move_response # type: ignore
21-
)
22-
from .models import providers
2316
from .. import _compat
17+
from .agents import evaluation_metrics # noqa: F401
18+
from .models import providers # noqa: F401
2419
from .shared import (
2520
Size as Size,
2621
Image as Image,
@@ -74,31 +69,80 @@
7469
from .api_openai_api_key_info import APIOpenAIAPIKeyInfo as APIOpenAIAPIKeyInfo
7570
from .gpu_droplet_list_params import GPUDropletListParams as GPUDropletListParams
7671
from .model_retrieve_response import ModelRetrieveResponse as ModelRetrieveResponse
77-
from .api_deployment_visibility import APIDeploymentVisibility as APIDeploymentVisibility
72+
from .agents.evaluation_metrics import workspaces # noqa: F401
73+
from .api_deployment_visibility import (
74+
APIDeploymentVisibility as APIDeploymentVisibility,
75+
)
7876
from .gpu_droplet_create_params import GPUDropletCreateParams as GPUDropletCreateParams
7977
from .gpu_droplet_list_response import GPUDropletListResponse as GPUDropletListResponse
80-
from .agent_update_status_params import AgentUpdateStatusParams as AgentUpdateStatusParams
78+
from .agent_update_status_params import (
79+
AgentUpdateStatusParams as AgentUpdateStatusParams,
80+
)
8181
from .api_anthropic_api_key_info import APIAnthropicAPIKeyInfo as APIAnthropicAPIKeyInfo
82-
from .knowledge_base_list_params import KnowledgeBaseListParams as KnowledgeBaseListParams
83-
from .droplet_backup_policy_param import DropletBackupPolicyParam as DropletBackupPolicyParam
84-
from .gpu_droplet_create_response import GPUDropletCreateResponse as GPUDropletCreateResponse
85-
from .agent_update_status_response import AgentUpdateStatusResponse as AgentUpdateStatusResponse
86-
from .knowledge_base_create_params import KnowledgeBaseCreateParams as KnowledgeBaseCreateParams
87-
from .knowledge_base_list_response import KnowledgeBaseListResponse as KnowledgeBaseListResponse
88-
from .knowledge_base_update_params import KnowledgeBaseUpdateParams as KnowledgeBaseUpdateParams
89-
from .gpu_droplet_retrieve_response import GPUDropletRetrieveResponse as GPUDropletRetrieveResponse
90-
from .knowledge_base_create_response import KnowledgeBaseCreateResponse as KnowledgeBaseCreateResponse
91-
from .knowledge_base_delete_response import KnowledgeBaseDeleteResponse as KnowledgeBaseDeleteResponse
92-
from .knowledge_base_update_response import KnowledgeBaseUpdateResponse as KnowledgeBaseUpdateResponse
93-
from .gpu_droplet_list_kernels_params import GPUDropletListKernelsParams as GPUDropletListKernelsParams
94-
from .gpu_droplet_delete_by_tag_params import GPUDropletDeleteByTagParams as GPUDropletDeleteByTagParams
95-
from .knowledge_base_retrieve_response import KnowledgeBaseRetrieveResponse as KnowledgeBaseRetrieveResponse
96-
from .gpu_droplet_list_firewalls_params import GPUDropletListFirewallsParams as GPUDropletListFirewallsParams
97-
from .gpu_droplet_list_kernels_response import GPUDropletListKernelsResponse as GPUDropletListKernelsResponse
98-
from .gpu_droplet_list_snapshots_params import GPUDropletListSnapshotsParams as GPUDropletListSnapshotsParams
99-
from .gpu_droplet_list_firewalls_response import GPUDropletListFirewallsResponse as GPUDropletListFirewallsResponse
100-
from .gpu_droplet_list_neighbors_response import GPUDropletListNeighborsResponse as GPUDropletListNeighborsResponse
101-
from .gpu_droplet_list_snapshots_response import GPUDropletListSnapshotsResponse as GPUDropletListSnapshotsResponse
82+
from .knowledge_base_list_params import (
83+
KnowledgeBaseListParams as KnowledgeBaseListParams,
84+
)
85+
from .droplet_backup_policy_param import (
86+
DropletBackupPolicyParam as DropletBackupPolicyParam,
87+
)
88+
from .gpu_droplet_create_response import (
89+
GPUDropletCreateResponse as GPUDropletCreateResponse,
90+
)
91+
from .agent_update_status_response import (
92+
AgentUpdateStatusResponse as AgentUpdateStatusResponse,
93+
)
94+
from .knowledge_base_create_params import (
95+
KnowledgeBaseCreateParams as KnowledgeBaseCreateParams,
96+
)
97+
from .knowledge_base_list_response import (
98+
KnowledgeBaseListResponse as KnowledgeBaseListResponse,
99+
)
100+
from .knowledge_base_update_params import (
101+
KnowledgeBaseUpdateParams as KnowledgeBaseUpdateParams,
102+
)
103+
from .gpu_droplet_retrieve_response import (
104+
GPUDropletRetrieveResponse as GPUDropletRetrieveResponse,
105+
)
106+
from .knowledge_base_create_response import (
107+
KnowledgeBaseCreateResponse as KnowledgeBaseCreateResponse,
108+
)
109+
from .knowledge_base_delete_response import (
110+
KnowledgeBaseDeleteResponse as KnowledgeBaseDeleteResponse,
111+
)
112+
from .knowledge_base_update_response import (
113+
KnowledgeBaseUpdateResponse as KnowledgeBaseUpdateResponse,
114+
)
115+
from .gpu_droplet_list_kernels_params import (
116+
GPUDropletListKernelsParams as GPUDropletListKernelsParams,
117+
)
118+
from .gpu_droplet_delete_by_tag_params import (
119+
GPUDropletDeleteByTagParams as GPUDropletDeleteByTagParams,
120+
)
121+
from .knowledge_base_retrieve_response import (
122+
KnowledgeBaseRetrieveResponse as KnowledgeBaseRetrieveResponse,
123+
)
124+
from .gpu_droplet_list_firewalls_params import (
125+
GPUDropletListFirewallsParams as GPUDropletListFirewallsParams,
126+
)
127+
from .gpu_droplet_list_kernels_response import (
128+
GPUDropletListKernelsResponse as GPUDropletListKernelsResponse,
129+
)
130+
from .gpu_droplet_list_snapshots_params import (
131+
GPUDropletListSnapshotsParams as GPUDropletListSnapshotsParams,
132+
)
133+
from .gpu_droplet_list_firewalls_response import (
134+
GPUDropletListFirewallsResponse as GPUDropletListFirewallsResponse,
135+
)
136+
from .gpu_droplet_list_neighbors_response import (
137+
GPUDropletListNeighborsResponse as GPUDropletListNeighborsResponse,
138+
)
139+
from .gpu_droplet_list_snapshots_response import (
140+
GPUDropletListSnapshotsResponse as GPUDropletListSnapshotsResponse,
141+
)
142+
from .agents.evaluation_metrics.workspaces import (
143+
agent_list_response, # noqa: F401
144+
agent_move_response, # noqa: F401
145+
)
102146

103147
# Rebuild cyclical models only after all modules are imported.
104148
# This ensures that, when building the deferred (due to cyclical references) model schema,
@@ -108,25 +152,53 @@
108152
api_agent.APIAgent.model_rebuild(_parent_namespace_depth=0)
109153
api_workspace.APIWorkspace.model_rebuild(_parent_namespace_depth=0)
110154
agent_create_response.AgentCreateResponse.model_rebuild(_parent_namespace_depth=0)
111-
agent_retrieve_response.AgentRetrieveResponse.model_rebuild(_parent_namespace_depth=0)
155+
agent_retrieve_response.AgentRetrieveResponse.model_rebuild(
156+
_parent_namespace_depth=0
157+
)
112158
agent_update_response.AgentUpdateResponse.model_rebuild(_parent_namespace_depth=0)
113159
agent_delete_response.AgentDeleteResponse.model_rebuild(_parent_namespace_depth=0)
114-
agent_update_status_response.AgentUpdateStatusResponse.model_rebuild(_parent_namespace_depth=0)
115-
agents.evaluation_metrics.workspace_create_response.WorkspaceCreateResponse.model_rebuild(_parent_namespace_depth=0)
160+
agent_update_status_response.AgentUpdateStatusResponse.model_rebuild(
161+
_parent_namespace_depth=0
162+
)
163+
agents.evaluation_metrics.workspace_create_response.WorkspaceCreateResponse.model_rebuild(
164+
_parent_namespace_depth=0
165+
)
116166
agents.evaluation_metrics.workspace_retrieve_response.WorkspaceRetrieveResponse.model_rebuild(
117167
_parent_namespace_depth=0
118168
)
119-
agents.evaluation_metrics.workspace_update_response.WorkspaceUpdateResponse.model_rebuild(_parent_namespace_depth=0)
120-
agents.evaluation_metrics.workspace_list_response.WorkspaceListResponse.model_rebuild(_parent_namespace_depth=0)
121-
agents.evaluation_metrics.workspaces.agent_list_response.AgentListResponse.model_rebuild(_parent_namespace_depth=0)
122-
agents.evaluation_metrics.workspaces.agent_move_response.AgentMoveResponse.model_rebuild(_parent_namespace_depth=0)
123-
agents.function_create_response.FunctionCreateResponse.model_rebuild(_parent_namespace_depth=0)
124-
agents.function_update_response.FunctionUpdateResponse.model_rebuild(_parent_namespace_depth=0)
125-
agents.function_delete_response.FunctionDeleteResponse.model_rebuild(_parent_namespace_depth=0)
126-
agents.api_link_knowledge_base_output.APILinkKnowledgeBaseOutput.model_rebuild(_parent_namespace_depth=0)
127-
agents.knowledge_base_detach_response.KnowledgeBaseDetachResponse.model_rebuild(_parent_namespace_depth=0)
128-
agents.route_view_response.RouteViewResponse.model_rebuild(_parent_namespace_depth=0)
129-
models.providers.anthropic_list_agents_response.AnthropicListAgentsResponse.model_rebuild(_parent_namespace_depth=0)
169+
agents.evaluation_metrics.workspace_update_response.WorkspaceUpdateResponse.model_rebuild(
170+
_parent_namespace_depth=0
171+
)
172+
agents.evaluation_metrics.workspace_list_response.WorkspaceListResponse.model_rebuild(
173+
_parent_namespace_depth=0
174+
)
175+
agents.evaluation_metrics.workspaces.agent_list_response.AgentListResponse.model_rebuild(
176+
_parent_namespace_depth=0
177+
)
178+
agents.evaluation_metrics.workspaces.agent_move_response.AgentMoveResponse.model_rebuild(
179+
_parent_namespace_depth=0
180+
)
181+
agents.function_create_response.FunctionCreateResponse.model_rebuild(
182+
_parent_namespace_depth=0
183+
)
184+
agents.function_update_response.FunctionUpdateResponse.model_rebuild(
185+
_parent_namespace_depth=0
186+
)
187+
agents.function_delete_response.FunctionDeleteResponse.model_rebuild(
188+
_parent_namespace_depth=0
189+
)
190+
agents.api_link_knowledge_base_output.APILinkKnowledgeBaseOutput.model_rebuild(
191+
_parent_namespace_depth=0
192+
)
193+
agents.knowledge_base_detach_response.KnowledgeBaseDetachResponse.model_rebuild(
194+
_parent_namespace_depth=0
195+
)
196+
agents.route_view_response.RouteViewResponse.model_rebuild(
197+
_parent_namespace_depth=0
198+
)
199+
models.providers.anthropic_list_agents_response.AnthropicListAgentsResponse.model_rebuild(
200+
_parent_namespace_depth=0
201+
)
130202
models.providers.openai_retrieve_agents_response.OpenAIRetrieveAgentsResponse.model_rebuild(
131203
_parent_namespace_depth=0
132204
)

src/do_gradientai/types/agents/evaluation_metrics/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from . import workspaces # type: ignore
5+
from . import workspaces # noqa: F401
66
from .model_list_params import ModelListParams as ModelListParams
77
from .model_list_response import ModelListResponse as ModelListResponse
88
from .workspace_create_params import WorkspaceCreateParams as WorkspaceCreateParams

0 commit comments

Comments
 (0)