Skip to content

Commit 96ca350

Browse files
committed
progress with typing
1 parent 577639f commit 96ca350

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1799
-7185
lines changed

dws-api-spec.yml

Lines changed: 0 additions & 5242 deletions
This file was deleted.

src/nutrient_dws/builder/base_builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from abc import ABC, abstractmethod
33
from typing import Any, Generic, Literal, TypeVar, Union
44

5+
from nutrient_dws.builder.staged_builders import TypedWorkflowResult
56
from nutrient_dws.http import (
67
AnalyzeBuildRequestData,
78
BuildRequestData,
@@ -10,10 +11,8 @@
1011
send_request,
1112
)
1213

13-
TResult = TypeVar("TResult")
1414

15-
16-
class BaseBuilder(ABC, Generic[TResult]):
15+
class BaseBuilder(ABC):
1716
"""Base builder class that all builders extend from.
1817
Provides common functionality for API interaction.
1918
"""
@@ -32,12 +31,13 @@ async def _send_request(
3231
"endpoint": path,
3332
"method": "POST",
3433
"data": options,
34+
"headers": None
3535
}
3636

3737
response = await send_request(config, self.client_options, response_type)
3838
return response["data"]
3939

4040
@abstractmethod
41-
async def execute(self) -> TResult:
41+
async def execute(self) -> TypedWorkflowResult:
4242
"""Abstract method that child classes must implement for execution."""
4343
pass

0 commit comments

Comments
 (0)