mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
* First attempt at stubs * fix AuthenticatedUser.piy * fix PullRequest.piy * fix Authorization.piy * fix Branch.piy * fix Clones.piy * fix Commit.piy * fix CommitCombinedStatus.piy * fix CommitComment.piy * fix CommitStatus.piy * fix ContentFile.piy * fix Download.piy * fix Event.piy * fix File.piy * fix Gist.piy * fix GistComment.piy * fix GistFile.piy * fix GitAuthor.piy * fix GitBlob.piy * fix GitCommit.piy * fix GitRef.piy * fix GitRelease.piy * renamed stubs into pyi files * fix Notification * fix Repository * fix GitReleaseAsset * fix GitTag * fix GitTree * fix GitTreeElement * fix GithubException * fix GithubObject * fix GitignoreTemplate * fix HookDescription * fix HookResponse * fix InputGitAuthor * fix Installation * fix InstallationAuthorization * fix Invitation * fix Issue * fix IssueComment * Fix random issues found while testing * fix IssuePullRequest * fix Label * fix License * fix Migration * fix Milestone * fix NamedUser * fix NotificationSubject * fix Organization * fix PaginatedList * fix Path * fix Permissions * fix Plan * fix Project * fix ProjectCard * fix ProjectColumn * fix PullRequestComment * fix PullRequestMergeStatus * fix PullRequestPart * fix PullRequestReview * fix Rate * fix RateLimit * fix Reaction * fix Referrer * fix RepositoryKey * fix RequiredPullRequestReviews * fix RequiredStatusChecks * fix SourceImport * fix Stargazer * fix StatsCodeFrequency * fix StatsCommitActivity * fix StatsContributor * fix Tag * fix Team * fix Topic * fix UserKey * fix MainClass * fix Requester * added stubs for View * added stubs for Membership * various syntax errors * silence mypy noise * keeping track of recent changes * black + isort Co-authored-by: Liuyang Wan <lwan@zendesk.com>
128 lines
3.9 KiB
Python
128 lines
3.9 KiB
Python
from datetime import datetime
|
|
from typing import Any, Dict, Optional, Union
|
|
|
|
from github.GithubObject import _NotSetType
|
|
from github.Membership import Membership
|
|
from github.PaginatedList import PaginatedList
|
|
from github.Permissions import Permissions
|
|
from github.Plan import Plan
|
|
from github.Repository import Repository
|
|
|
|
class NamedUser:
|
|
def __eq__(self, other: Any) -> bool: ...
|
|
def __hash__(self) -> int: ...
|
|
def __repr__(self) -> str: ...
|
|
@property
|
|
def _identity(self) -> str: ...
|
|
def _initAttributes(self) -> None: ...
|
|
def _useAttributes(self, attributes: Dict[str, Any]) -> None: ...
|
|
@property
|
|
def avatar_url(self) -> str: ...
|
|
@property
|
|
def bio(self) -> Optional[str]: ...
|
|
@property
|
|
def blog(self) -> str: ...
|
|
@property
|
|
def collaborators(self) -> Optional[int]: ...
|
|
@property
|
|
def company(self) -> str: ...
|
|
@property
|
|
def contributions(self) -> int: ...
|
|
@property
|
|
def created_at(self) -> datetime: ...
|
|
@property
|
|
def disk_usage(self) -> Optional[int]: ...
|
|
@property
|
|
def email(self) -> str: ...
|
|
@property
|
|
def events_url(self) -> str: ...
|
|
@property
|
|
def followers(self) -> int: ...
|
|
@property
|
|
def followers_url(self) -> str: ...
|
|
@property
|
|
def following(self) -> int: ...
|
|
@property
|
|
def following_url(self) -> str: ...
|
|
def get_events(self) -> PaginatedList: ...
|
|
def get_followers(self) -> PaginatedList: ...
|
|
def get_following(self) -> PaginatedList: ...
|
|
def get_gists(self, since: Union[_NotSetType, datetime] = ...) -> PaginatedList: ...
|
|
def get_keys(self) -> PaginatedList: ...
|
|
def get_organization_membership(self, org: int) -> Membership: ...
|
|
def get_orgs(self) -> PaginatedList: ...
|
|
def get_public_events(self) -> PaginatedList: ...
|
|
def get_public_received_events(self) -> PaginatedList: ...
|
|
def get_received_events(self) -> PaginatedList: ...
|
|
def get_repo(self, name: str) -> Repository: ...
|
|
def get_repos(
|
|
self,
|
|
type: Union[str, _NotSetType] = ...,
|
|
sort: Union[str, _NotSetType] = ...,
|
|
direction: Union[str, _NotSetType] = ...,
|
|
) -> PaginatedList: ...
|
|
def get_starred(self) -> PaginatedList: ...
|
|
def get_subscriptions(self) -> PaginatedList: ...
|
|
def get_watched(self) -> PaginatedList: ...
|
|
@property
|
|
def gists_url(self) -> str: ...
|
|
@property
|
|
def gravatar_id(self) -> str: ...
|
|
def has_in_following(self, following: NamedUser) -> bool: ...
|
|
@property
|
|
def hireable(self) -> bool: ...
|
|
@property
|
|
def html_url(self) -> str: ...
|
|
@property
|
|
def id(self) -> int: ...
|
|
@property
|
|
def invitation_teams_url(self) -> str: ...
|
|
@property
|
|
def inviter(self) -> NamedUser: ...
|
|
@property
|
|
def location(self) -> str: ...
|
|
@property
|
|
def login(self) -> str: ...
|
|
@property
|
|
def name(self) -> str: ...
|
|
@property
|
|
def node_id(self) -> str: ...
|
|
@property
|
|
def organizations_url(self) -> str: ...
|
|
@property
|
|
def owned_private_repos(self) -> Optional[int]: ...
|
|
@property
|
|
def permissions(self) -> Permissions: ...
|
|
@property
|
|
def plan(self) -> Optional[Plan]: ...
|
|
@property
|
|
def private_gists(self) -> Optional[int]: ...
|
|
@property
|
|
def public_gists(self) -> int: ...
|
|
@property
|
|
def public_repos(self) -> int: ...
|
|
@property
|
|
def received_events_url(self) -> str: ...
|
|
@property
|
|
def repos_url(self) -> str: ...
|
|
@property
|
|
def role(self) -> str: ...
|
|
@property
|
|
def site_admin(self) -> bool: ...
|
|
@property
|
|
def starred_url(self) -> str: ...
|
|
@property
|
|
def subscriptions_url(self) -> str: ...
|
|
@property
|
|
def suspended_at(self) -> Optional[datetime]: ...
|
|
@property
|
|
def team_count(self) -> int: ...
|
|
@property
|
|
def total_private_repos(self) -> Optional[int]: ...
|
|
@property
|
|
def type(self) -> str: ...
|
|
@property
|
|
def updated_at(self) -> datetime: ...
|
|
@property
|
|
def url(self) -> str: ...
|