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
This commit is contained in:
John T. Wodder II
2021-03-24 13:58:42 +11:00
committed by GitHub
parent 916da53bef
commit 7d6bac9e4d
+5 -5
View File
@@ -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: ...