mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
* Add type stubs for GithubException subclasses * Install type stubs per PEP 561 See https://mypy.readthedocs.io/en/stable/installed_packages.html#making-pep-561-compatible-packages. * Make PaginatedList a generic type * Add type stubs for __init__.py * Add type stub for NamedUser.get_projects * Add GithubObject superclasses to type stubs Fixes #1490
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
from datetime import datetime
|
|
from typing import Any, Dict, Optional
|
|
|
|
from github.GithubObject import CompletableGithubObject
|
|
from github.Issue import Issue
|
|
from github.NotificationSubject import NotificationSubject
|
|
from github.PullRequest import PullRequest
|
|
from github.Repository import Repository
|
|
|
|
class Notification(CompletableGithubObject):
|
|
def _initAttributes(self) -> None: ...
|
|
def _useAttributes(self, attributes: Dict[str, Any]) -> None: ...
|
|
@property
|
|
def id(self) -> str: ...
|
|
@property
|
|
def last_read_at(self) -> datetime: ...
|
|
def mark_as_read(self) -> None: ...
|
|
@property
|
|
def reason(self) -> str: ...
|
|
@property
|
|
def repository(self) -> Repository: ...
|
|
@property
|
|
def subject(self) -> NotificationSubject: ...
|
|
@property
|
|
def subscription_url(self) -> str: ...
|
|
@property
|
|
def unread(self) -> Optional[bool]: ...
|
|
@property
|
|
def updated_at(self) -> Optional[datetime]: ...
|
|
@property
|
|
def url(self) -> Optional[str]: ...
|
|
def get_pull_request(self) -> PullRequest: ...
|
|
def get_issue(self) -> Issue: ...
|