mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
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:
@@ -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
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ from typing import Any, Dict
|
||||
|
||||
from github.GithubObject import CompletableGithubObject
|
||||
|
||||
class Deployment(CompletableGithubObject):
|
||||
class Workflow(CompletableGithubObject):
|
||||
def __repr__(self) -> str: ...
|
||||
def _initAttributes(self) -> None: ...
|
||||
def _useAttributes(self, attributes: Dict[str, Any]) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user