-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Type hinting #1920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Type hinting #1920
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
79a76f6
adding mypy to the repo
Poolitzer 22a45a0
first take on only testing changed files
Poolitzer f61fecf
allowing test branch
Poolitzer 1e94485
improving start condition of workflow
Poolitzer 6a51275
Add mypy to pre-commit and make
Bibo-Joshi a89828a
Try computing typing coverage in CI
Bibo-Joshi 656c2bd
Save coverage report as artifact
Bibo-Joshi e5f5867
Drop py3.5, use mypy options instead of diff-cover
Bibo-Joshi c856bbb
use spaces over tabs in makefile
Bibo-Joshi 783e5d4
Remove deprecated getargspec
Bibo-Joshi e13bb33
Refactor de_json
Bibo-Joshi 9160674
Annotate all the things! (Except tg.ext)
Bibo-Joshi d84444b
Merge branch 'master' into type_hinting_master
Bibo-Joshi 7f4410d
Annotate InputMedia, Custom Aliases, improve file typing
Bibo-Joshi f87fa10
Move de_list to TelegramObject
Bibo-Joshi 4b9c010
Persistence & Handlers
Bibo-Joshi 1a22799
Filters
Bibo-Joshi 9a545be
JobQueue & Job
Bibo-Joshi be15033
Dispatcher
Bibo-Joshi db78e06
MessageQueue
Bibo-Joshi b74d0db
Some fixes
Bibo-Joshi f0c972e
Merge branch 'master' into type_hinting_master
Bibo-Joshi 84e49a6
utils.typing -> utils.types + 2 newlines
Bibo-Joshi a8895a2
Merge branch 'v13' into type_hinting_master
Bibo-Joshi 773430d
Temporarily enable tests for the v13 branch
Bibo-Joshi 6fd3d2f
Refactor handling of kwargs in Bot methods (#1924)
Bibo-Joshi 9c38dae
Refactor JobQueue (#1981)
Bibo-Joshi 3418ba2
Refactor persistence of Bot instances (#1994)
Bibo-Joshi 1e29c1a
Extend rich comparison of objects (#1724)
Bibo-Joshi eb8d65b
Merge branch 'v13' into type_hinting_master
Bibo-Joshi dee672d
Temporarily enable tests for the v13 branch
Bibo-Joshi 02b058c
Refactor handling of kwargs in Bot methods (#1924)
Bibo-Joshi 958a41e
Refactor JobQueue (#1981)
Bibo-Joshi c3a426a
Refactor persistence of Bot instances (#1994)
Bibo-Joshi fe9370a
Extend rich comparison of objects (#1724)
Bibo-Joshi f74be43
Refactor handling of default_quote (#1965)
Bibo-Joshi 87a426e
Refactor Handling of Message VS Update Filters (#2032)
Bibo-Joshi ad30a8f
Make context-based callbacks the default setting (#2050)
Bibo-Joshi 2a67404
Merge branch 'v13' into type_hinting_master
Bibo-Joshi 9fb50f3
Temporarily enable tests for the v13 branch
Bibo-Joshi 274f6b4
Refactor handling of kwargs in Bot methods (#1924)
Bibo-Joshi 295805b
Refactor JobQueue (#1981)
Bibo-Joshi 75ca2ba
Refactor persistence of Bot instances (#1994)
Bibo-Joshi 47bde49
Extend rich comparison of objects (#1724)
Bibo-Joshi c7c9790
Refactor handling of default_quote (#1965)
Bibo-Joshi da98330
Refactor Handling of Message VS Update Filters (#2032)
Bibo-Joshi 85c6831
Make context-based callbacks the default setting (#2050)
Bibo-Joshi b090050
Merge branch 'v13' into type_hinting_master
Bibo-Joshi f39dbd6
Merge branch 'v13' into type_hinting_master
Bibo-Joshi b72ac15
address review
Bibo-Joshi 0ad6649
Merge branch 'v13' into type_hinting_master
Bibo-Joshi 96b929f
Use NoReturn where possible
Bibo-Joshi 4398205
Try ignoring the if TYPE_CHECKING lines in coverage report
Bibo-Joshi 6edc522
minor fix
Bibo-Joshi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ htmlcov/ | |
.coverage.* | ||
.cache | ||
.pytest_cache | ||
.mypy_cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ telegram.utils package | |
telegram.utils.helpers | ||
telegram.utils.promise | ||
telegram.utils.request | ||
telegram.utils.types |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
telegram.utils.types Module | ||
=========================== | ||
|
||
.. automodule:: telegram.utils.types | ||
:members: | ||
:show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ pep257 | |
pylint | ||
flaky | ||
yapf | ||
mypy==0.770 | ||
pre-commit | ||
beautifulsoup4 | ||
pytest==4.2.0 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.