Add some attributes. (#1468)

* Add some attributes to Repository and Organization

* Format.

* small fix

* Add some test.
This commit is contained in:
ton-katsu
2020-04-21 11:49:32 +10:00
committed by GitHub
parent 7046259832
commit 3ab97d6145
14 changed files with 175 additions and 22 deletions
+6
View File
@@ -193,6 +193,8 @@ class Repository:
author: Union[InputGitAuthor, _NotSetType] = ...,
) -> Dict[str, Union[Commit, _NotSetType]]: ...
@property
def deployments_url(self) -> str: ...
@property
def description(self) -> str: ...
def disable_automated_security_fixes(self) -> bool: ...
def disable_vulnerability_alert(self) -> bool: ...
@@ -381,6 +383,8 @@ class Repository:
@property
def has_issues(self) -> bool: ...
@property
def has_pages(self) -> bool: ...
@property
def has_projects(self) -> bool: ...
@property
def has_wiki(self) -> bool: ...
@@ -443,6 +447,8 @@ class Repository:
def pulls_url(self) -> str: ...
@property
def pushed_at(self) -> datetime: ...
@property
def releases_url(self) -> str: ...
def remove_from_collaborators(
self, collaborator: Union[str, NamedUser]
) -> None: ...