mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
The type annotations for Workflow.create_dispatch() and Workflow.get_runs() do not include the fact that some of the arguments have default values
46 lines
1.4 KiB
Python
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: ...
|