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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃敡 Fix Type hint of auto_error which does not need to be Optional[bool] #4933

Merged
merged 1 commit into from Aug 26, 2022

Conversation

DavidKimDY
Copy link
Contributor

Default is True and If someone doesn't want auto_error option, then it should be False instead of None.
I guess It is more Pythonic.

Default is True and If someone doesn't want auto_error option, then it should be False instead of None.  I guess It is more Pythonic.
@codecov
Copy link

codecov bot commented May 20, 2022

Codecov Report

Merging #4933 (705b243) into master (1876ebc) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master     #4933   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          532       532           
  Lines        13672     13672           
=========================================
  Hits         13672     13672           
Impacted Files Coverage 螖
fastapi/security/oauth2.py 100.00% <酶> (酶)

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update 1876ebc...705b243. Read the comment docs.

@github-actions
Copy link
Contributor

馃摑 Docs preview for commit 705b243 at: https://62876934334bfc3cf10a3aaa--fastapi.netlify.app

@DavidKimDY DavidKimDY changed the title No need to be Optional[bool] to auto_error 馃敡No need to be Optional[bool] to auto_error May 20, 2022
@DavidKimDY DavidKimDY changed the title 馃敡No need to be Optional[bool] to auto_error 馃敡 Fix Type hint of auto_error which does not need to be Optional[bool] May 20, 2022
@tiangolo tiangolo changed the title 馃敡 Fix Type hint of auto_error which does not need to be Optional[bool] 馃敡 Fix Type hint of auto_error which does not need to be Optional[bool] Aug 26, 2022
@tiangolo
Copy link
Owner

Good catch, thanks @DavidKimDY! 馃殌 馃槑

@tiangolo tiangolo merged commit 0539dd9 into tiangolo:master Aug 26, 2022
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