Files
PyGithub/github/Workflow.pyi
T
John T. Wodder II 7d6bac9e4d 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
2021-03-24 13:58:42 +11:00

46 lines
1.4 KiB
Python

from datetime import datetime
from typing import Any, Dict, Union
from github.Branch import Branch
from github.Commit import Commit
from github.GithubObject import CompletableGithubObject, _NotSetType
from github.NamedUser import NamedUser
from github.PaginatedList import PaginatedList
from github.Tag import Tag
from github.WorkflowRun import WorkflowRun
class Workflow(CompletableGithubObject):
def __repr__(self) -> str: ...
def _initAttributes(self) -> None: ...
def _useAttributes(self, attributes: Dict[str, Any]) -> None: ...
def create_dispatch(
self,
ref: Union[str, Branch, Commit, Tag],
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] = ...,
) -> PaginatedList[WorkflowRun]: ...
@property
def id(self) -> int: ...
@property
def name(self) -> str: ...
@property
def path(self) -> str: ...
@property
def state(self) -> str: ...
@property
def created_at(self) -> datetime: ...
@property
def updated_at(self) -> datetime: ...
@property
def url(self) -> str: ...
@property
def html_url(self) -> str: ...
@property
def badge_url(self) -> str: ...