Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit 5dcc298

Browse files
committed
fix: finally, it all works
1 parent 62948af commit 5dcc298

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

hatchet_sdk/clients/rest_client.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
import atexit
33
import datetime
44
import threading
5-
from typing import Any, Coroutine, List, TypeVar, cast
5+
from typing import Coroutine, TypeVar
66

77
from pydantic import StrictInt
88

9-
from hatchet_sdk.clients.rest import CronWorkflowsList, ScheduledWorkflowsList
109
from hatchet_sdk.clients.rest.api.event_api import EventApi
1110
from hatchet_sdk.clients.rest.api.log_api import LogApi
1211
from hatchet_sdk.clients.rest.api.step_run_api import StepRunApi
@@ -15,11 +14,11 @@
1514
from hatchet_sdk.clients.rest.api.workflow_runs_api import WorkflowRunsApi
1615
from hatchet_sdk.clients.rest.api_client import ApiClient
1716
from hatchet_sdk.clients.rest.configuration import Configuration
18-
from hatchet_sdk.clients.rest.models import TriggerWorkflowRunRequest
1917
from hatchet_sdk.clients.rest.models.create_cron_workflow_trigger_request import (
2018
CreateCronWorkflowTriggerRequest,
2119
)
2220
from hatchet_sdk.clients.rest.models.cron_workflows import CronWorkflows
21+
from hatchet_sdk.clients.rest.models.cron_workflows_list import CronWorkflowsList
2322
from hatchet_sdk.clients.rest.models.cron_workflows_order_by_field import (
2423
CronWorkflowsOrderByField,
2524
)
@@ -48,9 +47,15 @@
4847
ScheduleWorkflowRunRequest,
4948
)
5049
from hatchet_sdk.clients.rest.models.scheduled_workflows import ScheduledWorkflows
50+
from hatchet_sdk.clients.rest.models.scheduled_workflows_list import (
51+
ScheduledWorkflowsList,
52+
)
5153
from hatchet_sdk.clients.rest.models.scheduled_workflows_order_by_field import (
5254
ScheduledWorkflowsOrderByField,
5355
)
56+
from hatchet_sdk.clients.rest.models.trigger_workflow_run_request import (
57+
TriggerWorkflowRunRequest,
58+
)
5459
from hatchet_sdk.clients.rest.models.workflow import Workflow
5560
from hatchet_sdk.clients.rest.models.workflow_kind import WorkflowKind
5661
from hatchet_sdk.clients.rest.models.workflow_list import WorkflowList

pyproject.toml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ exclude = [
8989
"hatchet_sdk/clients/rest/api/*",
9090
"hatchet_sdk/clients/rest/models/*",
9191
"hatchet_sdk/contracts",
92+
"hatchet_sdk/clients/rest/api_client.py",
93+
"hatchet_sdk/clients/rest/configuration.py",
94+
"hatchet_sdk/clients/rest/exceptions.py",
95+
"hatchet_sdk/clients/rest/rest.py",
9296
]
9397

9498
explicit_package_bases = true
@@ -115,19 +119,19 @@ warn_return_any = true
115119
[[tool.mypy.overrides]]
116120
module = ["hatchet_sdk/contracts/*", "hatchet_sdk/clients/rest/*"]
117121

118-
warn_unused_ignores = false
122+
warn_unused_ignores = true
119123

120-
strict_equality = false
124+
strict_equality = true
121125

122-
disallow_subclassing_any = false
123-
disallow_untyped_decorators = false
124-
disallow_any_generics = false
126+
disallow_subclassing_any = true
127+
disallow_untyped_decorators = true
128+
disallow_any_generics = true
125129

126130
disallow_untyped_calls = false
127131
disallow_incomplete_defs = false
128132
disallow_untyped_defs = false
129133

130-
no_implicit_reexport = false
134+
no_implicit_reexport = true
131135

132136
warn_return_any = false
133137

0 commit comments

Comments
 (0)