Correct Workflow typing (#1533)

When Workflow support was added, the method calls were not added to
the typing file for Repository, and somehow the class name for the
Workflow typing file was incorrect.
This commit is contained in:
Steve Kowalik
2020-05-23 16:04:06 +10:00
committed by GitHub
parent 7abf600480
commit f41c046f0e
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -48,6 +48,7 @@ from github.StatsPunchCard import StatsPunchCard
from github.Tag import Tag
from github.Team import Team
from github.View import View
from github.Workflow import Workflow
class Repository(CompletableGithubObject):
def __repr__(self) -> str: ...
@@ -381,6 +382,8 @@ class Repository(CompletableGithubObject):
) -> Dict[str, Union[int, List[View]]]: ...
def get_vulnerability_alert(self) -> bool: ...
def get_watchers(self) -> PaginatedList[NamedUser]: ...
def get_workflow(self, id_or_name: Union[str, int]) -> Workflow: ...
def get_workflows(self) -> PaginatedList[Workflow]: ...
@property
def git_commits_url(self) -> str: ...
@property