Skip to content

Commit ccb5532

Browse files
committed
better typing
1 parent a4678c7 commit ccb5532

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

patchwork/steps/GitHubAgent/typed.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
from patchwork.common.utils.step_typing import StepTypeConfig
44

55

6-
class GitHubAgentInputs(TypedDict, total=False):
6+
class __GitHubAgentRequiredInputs(TypedDict):
7+
task: str
8+
9+
class GitHubAgentInputs(__GitHubAgentRequiredInputs, total=False):
710
base_path: str
811
prompt_value: Dict[str, Any]
9-
task: str
1012
max_llm_calls: Annotated[int, StepTypeConfig(is_config=True)]
1113
openai_api_key: Annotated[
1214
str, StepTypeConfig(is_config=True, or_op=["patched_api_key", "google_api_key", "anthropic_api_key"])

0 commit comments

Comments
 (0)