From ff6afeaf78ef9864ed8987e0c5b6f0d127773413 Mon Sep 17 00:00:00 2001 From: tomarv2 <11890959+tomarv2@users.noreply.github.com> Date: Fri, 10 Jul 2020 11:31:15 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=20Fix=20docstring=20typo=20for=20oaut?= =?UTF-8?q?h2=20utils=20(#1621)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/security/oauth2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastapi/security/oauth2.py b/fastapi/security/oauth2.py index 141a9b5a9..71bf02eed 100644 --- a/fastapi/security/oauth2.py +++ b/fastapi/security/oauth2.py @@ -15,7 +15,7 @@ class OAuth2PasswordRequestForm: This is a dependency class, use it like: @app.post("/login") - def login(form_data: Oauth2PasswordRequestForm = Depends()): + def login(form_data: OAuth2PasswordRequestForm = Depends()): data = form_data.parse() print(data.username) print(data.password) @@ -65,7 +65,7 @@ class OAuth2PasswordRequestFormStrict(OAuth2PasswordRequestForm): This is a dependency class, use it like: @app.post("/login") - def login(form_data: Oauth2PasswordRequestFormStrict = Depends()): + def login(form_data: OAuth2PasswordRequestFormStrict = Depends()): data = form_data.parse() print(data.username) print(data.password)