mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +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
41 lines
1.2 KiB
Python
41 lines
1.2 KiB
Python
from datetime import datetime
|
|
from typing import Any, Dict, Union
|
|
|
|
from github.GithubObject import CompletableGithubObject
|
|
from github.NamedUser import NamedUser
|
|
|
|
class GitReleaseAsset(CompletableGithubObject):
|
|
def __repr__(self) -> str: ...
|
|
def _initAttributes(self) -> None: ...
|
|
def _useAttributes(self, attributes: Dict[str, Any]) -> None: ...
|
|
@property
|
|
def browser_download_url(self) -> str: ...
|
|
@property
|
|
def content_type(self) -> str: ...
|
|
@property
|
|
def created_at(self) -> datetime: ...
|
|
def delete_asset(self) -> bool: ...
|
|
@property
|
|
def download_count(self) -> int: ...
|
|
@property
|
|
def id(self) -> int: ...
|
|
@property
|
|
def label(self) -> str: ...
|
|
@label.setter
|
|
def label(self, value: str) -> None: ...
|
|
@property
|
|
def name(self) -> str: ...
|
|
@name.setter
|
|
def name(self, value: str) -> None: ...
|
|
@property
|
|
def size(self) -> int: ...
|
|
@property
|
|
def state(self) -> str: ...
|
|
def update_asset(self, name: str, label: str = ...) -> GitReleaseAsset: ...
|
|
@property
|
|
def updated_at(self) -> datetime: ...
|
|
@property
|
|
def uploader(self) -> NamedUser: ...
|
|
@property
|
|
def url(self) -> str: ...
|