mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
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:
+5
-5
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user