forked from sigmavirus24/github3.py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.pyi
More file actions
62 lines (50 loc) · 1.17 KB
/
Copy pathmodels.pyi
File metadata and controls
62 lines (50 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
from typing import (
Any,
Dict,
Generic,
Optional,
Type,
TypeVar,
Union,
)
from . import session
Subclass = TypeVar('Subclass', bound='GitHubCore')
Core = TypeVar('Core', bound='GitHubCore')
Sessionish = Union[session.GitHubSession, GitHubCore]
FullClass = TypeVar('FullClass')
class GitHubCore(Generic[FullClass]):
_refresh_to = None # type: Optional[FullClass]
def __init__(
self: Core,
json: Dict[str, Any],
session: Sessionish,
) -> None:
...
def as_dict(self: Core) -> Dict[str, Any]:
...
def as_json(self: Core) -> str:
...
@classmethod
def from_dict(
cls: Type[Subclass],
json_dict: Dict[str, Any],
session: Sessionish,
) -> Subclass:
...
@classmethod
def from_json(
cls: Type[Subclass],
json_dict: str,
session: Sessionish,
) -> Subclass:
...
@property
def ratelimit_remaining(self: Core) -> int:
...
def refresh(
self: Core,
conditional: bool,
) -> Union[Core, FullClass]:
...
def new_session(self: Core) -> session.GitHubSession:
...