forked from sigmavirus24/github3.py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructs.pyi
More file actions
32 lines (25 loc) · 1001 Bytes
/
Copy pathstructs.pyi
File metadata and controls
32 lines (25 loc) · 1001 Bytes
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
"""Stubs for github3.structs module."""
from typing import Dict, Iterator, TypeVar, Iterable, Generic, Optional
import requests
from . import session
ReturnClass = TypeVar('ReturnClass')
class GitHubIterator(Generic[ReturnClass], Iterable):
original = ... # type: int
count = ... # type: int
url = ... # type: str
last_url = ... # type: Optional[str]
cls = ... # type: ReturnClass
params = ... # type: Dict[str, str]
etag = ... # type: str
headers = ... # type: Dict[str, str]
last_response = ... # type: requests.models.Response
last_status = ... # type: int
path = ... # type: str
def __init__(self, count: int, url: str, cls: ReturnClass,
session: session.GitHubSession, params: Dict[str, str],
etag: str, headers: Dict[str, str]) -> None:
...
def __iter__(self) -> Iterator[ReturnClass]:
...
def refresh(self, conditional: bool) -> GitHubIterator[ReturnClass]:
...