10BC0 ✏ Fix docstring typo for oauth2 utils (#1621) · fastapi/fastapi@ff6afea · GitHub
[go: up one dir, main page]

Skip to content

Commit ff6afea

Browse files
authored
✏ Fix docstring typo for oauth2 utils (#1621)
1 parent 74852d4 commit ff6afea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fastapi/security/oauth2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class OAuth2PasswordRequestForm:
1515
This is a dependency class, use it like:
1616
1717
@app.post("/login")
18-
def login(form_data: Oauth2PasswordRequestForm = Depends()):
18+
def login(form_data: OAuth2PasswordRequestForm = Depends()):
1919
data = form_data.parse()
2020
print(data.username)
2121
print(data.password)
@@ -65,7 +65,7 @@ class OAuth2PasswordRequestFormStrict(OAuth2PasswordRequestForm):
6565
This is a dependency class, use it like:
6666
6767
@app.post("/login")
68-
def login(form_data: Oauth2PasswordRequestFormStrict = Depends()):
68+
def login(form_data: OAuth2PasswordRequestFormStrict = Depends()):
6969
data = form_data.parse()
7070
print(data.username)
7171
print(data.password)

0 commit comments

Comments
 (0)
0