-
-
Notifications
You must be signed in to change notification settings - Fork 694
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
Add complete types to take all allowed keys into account #873
Merged
Merged
Changes from 7 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1ebcb2e
Use new style typing
Viicos 7cf5a54
Fix type annotations to allow all keys
Viicos 16da314
Use string type annotations where required
Viicos 819a86a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4e56775
Remove outdated comment
Viicos 67c57ec
Ignore `if TYPE_CHECKING:` lines in coverage
Viicos 8139b3d
Remove duplicate test
Viicos 6368201
Fix mypy errors
Viicos 2e33851
Update algorithms.py
auvipy b5a73f8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 11cc10d
Fully switch to modern annotations
Viicos 7a807b3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a10f1fc
Update `pre-commit` mypy config
Viicos 33dac85
Use Python 3.11 for mypy
Viicos 57e46bf
Update mypy Python version in `pyproject.toml`
Viicos db9e9a8
Few tests mypy fixes
Viicos b98c03f
fix mypy errors on tests
Viicos 476ca58
Fix key imports
Viicos 8eb7610
Remove unused import
Viicos 27e2b45
Fix randomly failing test
Viicos 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please describe why this test is removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a duplicate of
pyjwt/tests/test_algorithms.py
Lines 758 to 765 in ba72644
L764-765
In fact I think it's better to move the two valid checks from
test_okp_ed25519_should_reject_non_string_key
to this removedtest_okp_ed25519_should_accept_unicode_key
. Tell me if you want me to do it this way