-
Notifications
You must be signed in to change notification settings - Fork 34
Type annotations #127
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
Type annotations #127
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
4b54532
Enable strict typing
JaapJoris 836d079
First batch of type fixes
JaapJoris 7d9b58e
Second batch of type fixes
JaapJoris 027f732
Third batch of type fixes
JaapJoris 9fdf70b
Fix Python 3.9 compatibility
JaapJoris ba7ec3b
Final batch of type fixes
JaapJoris 042e5c5
Add mypy pre-commit hook
JaapJoris b813040
Get rid of redundant `options.pyi`
JaapJoris 79a366b
Stop using `self` as the namespace for command-line arguments
JaapJoris a98222f
Add typing to test suite
JaapJoris 85ae8b6
Run `pre-commit run -a`
JaapJoris 175684b
Unpin dependencies in pipeline to catch breakages early, and add `pre…
JaapJoris 851acff
Re-add `@rev` to workflow actions
JaapJoris 3965037
Prevent workflow jobs from running twice
JaapJoris ae31e87
Upgrade pre-commit hooks
JaapJoris a17d1e4
Improve typing of class variables
JaapJoris 6965313
Improve typing off places that use `OffsetDict`
JaapJoris 79400bc
Rename `_Base` to `BaseToken`
JaapJoris 6f9390c
Write out all arguments to `__init__()` explicitly
JaapJoris 0401c49
Convert `extra_blocks` to `dict[str, str]` at an earlier stage
JaapJoris 903f4f5
Remove obsolute self variable and its associated comment
JaapJoris 0c801f9
Unquote types
JaapJoris 272186d
Move type of `inside_attr` to class-level
JaapJoris b3c52dd
Replace `[]` with `()` for no practical reason
JaapJoris 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 |
---|---|---|
@@ -1,13 +1,18 @@ | ||
repos: | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/pycqa/isort | ||
rev: 6.0.1 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/psf/black | ||
rev: 25.1.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 7.3.0 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.17.1 | ||
hooks: | ||
- id: mypy | ||
exclude: ^noxfile\.py$ |
JaapJoris marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
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.