Skip to content
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

Prefer direct indexing over options.get() #552

Merged
merged 1 commit into from
Dec 18, 2020
Merged

Prefer direct indexing over options.get() #552

merged 1 commit into from
Dec 18, 2020

Conversation

jdufresne
Copy link
Contributor

Default options are set using PyJWT._get_default_options() therefore,
there should never be a KeyError when indexing options directly. Enforce
this expectation. Also avoids duplicating the default for the "require"
option.

Default options are set using PyJWT._get_default_options() therefore,
there should never be a KeyError when indexing options directly. Enforce
this expectation. Also avoids duplicating the default for the "require"
option.
@jpadilla jpadilla added this to the v2.0.0 milestone Dec 17, 2020
@jpadilla jpadilla merged commit d0b9dc7 into jpadilla:master Dec 18, 2020
@jdufresne jdufresne deleted the options-index branch December 18, 2020 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants