8000 Start adding type-stubs to the project · simahawk/github3.py@8c5b3e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c5b3e9

Browse files
committed
Start adding type-stubs to the project
This adds stub files for every file in the project and starts building things out from the main API: github3.github.GitHub
1 parent 6f80592 commit 8c5b3e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+264
-0
lines changed

.gitignore

Expand all lines: .gitignore
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ build/
1919
.cache/
2020
tests/id_rsa
2121
*.DS_Store
22+
.mypy_cache

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ matrix:
2727
env: TOXENV=py37
2828
- python: pypy
2929
env: TOXENV=pypy
30+
- python: 3.6
31+
env: TOXENV=teststubs
3032
- env: TOXENV=py27-flake8
3133
- env: TOXENV=py34-flake8
3234
- env: TOXENV=docstrings

github3/__about__.pyi

Whitespace-only changes.

github3/__init__.pyi

Whitespace-only changes.

github3/api.pyi

Whitespace-only changes.

github3/auths.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""This module contains the type stubs for github3.auths."""
2+
3+
class Authorization:
4+
...

github3/decorators.pyi

Whitespace-only changes.

github3/events.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""Type stubs for github3.events."""
2+
3+
class Event:
4+
...

github3/exceptions.pyi

Whitespace-only changes.

github3/gists/__init__.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from .file import GistFile
2+
from .gist import Gist, ShortGist

0 commit comments

Comments
 (0)
0