Files
PyGithub/github/Notification.pyi
T
Emily 6eba4506d4 Improve type stubs (#1489)
* 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
2020-05-01 12:00:00 +10:00

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: ...