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
51 lines
1.4 KiB
Python
51 lines
1.4 KiB
Python
from datetime import date, datetime
|
|
from typing import Any, Dict, Optional, Union
|
|
|
|
from github.GithubObject import CompletableGithubObject, _NotSetType
|
|
from github.Label import Label
|
|
from github.NamedUser import NamedUser
|
|
from github.PaginatedList import PaginatedList
|
|
|
|
class Milestone(CompletableGithubObject):
|
|
def __repr__(self) -> str: ...
|
|
@property
|
|
def _identity(self) -> int: ...
|
|
def _initAttributes(self) -> None: ...
|
|
def _useAttributes(self, attributes: Dict[str, Any]) -> None: ...
|
|
@property
|
|
def closed_issues(self) -> int: ...
|
|
@property
|
|
def created_at(self):
|
|
datetime: ...
|
|
@property
|
|
def creator(self) -> NamedUser: ...
|
|
def delete(self) -> None: ...
|
|
@property
|
|
def description(self) -> str: ...
|
|
@property
|
|
def due_on(self) -> Optional[datetime]: ...
|
|
def edit(
|
|
self,
|
|
title: str,
|
|
state: Union[_NotSetType, str] = ...,
|
|
description: Union[_NotSetType, str] = ...,
|
|
due_on: Union[date, _NotSetType] = ...,
|
|
) -> None: ...
|
|
def get_labels(self) -> PaginatedList[Label]: ...
|
|
@property
|
|
def id(self) -> int: ...
|
|
@property
|
|
def labels_url(self) -> str: ...
|
|
@property
|
|
def number(self) -> int: ...
|
|
@property
|
|
def open_issues(self) -> int: ...
|
|
@property
|
|
def state(self) -> str: ...
|
|
@property
|
|
def title(self) -> str: ...
|
|
@property
|
|
def updated_at(self) -> datetime: ...
|
|
@property
|
|
def url(self) -> str: ...
|