From 7d6bac9e4df05c8eff64e4d991ae119e31a04d08 Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Tue, 23 Mar 2021 22:58:42 -0400 Subject: [PATCH] Add default arguments to Workflow method type annotations (#1857) The type annotations for Workflow.create_dispatch() and Workflow.get_runs() do not include the fact that some of the arguments have default values --- github/Workflow.pyi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/github/Workflow.pyi b/github/Workflow.pyi index 6537830c..db706c01 100644 --- a/github/Workflow.pyi +++ b/github/Workflow.pyi @@ -16,14 +16,14 @@ class Workflow(CompletableGithubObject): def create_dispatch( self, ref: Union[str, Branch, Commit, Tag], - inputs: Union[Dict[str, Union[str, int, float]], _NotSetType], + inputs: Union[Dict[str, Union[str, int, float]], _NotSetType] = ..., ) -> bool: ... def get_runs( self, - actor: Union[str, NamedUser, _NotSetType], - branch: Union[str, Branch, _NotSetType], - event: Union[str, _NotSetType], - status: Union[str, _NotSetType], + actor: Union[str, NamedUser, _NotSetType] = ..., + branch: Union[str, Branch, _NotSetType] = ..., + event: Union[str, _NotSetType] = ..., + status: Union[str, _NotSetType] = ..., ) -> PaginatedList[WorkflowRun]: ... @property def id(self) -> int: ...