From f5dff6244a2a0afad96af383fdcb88236ac3507e Mon Sep 17 00:00:00 2001 From: Rohan Santhosh Date: Sat, 28 Feb 2026 13:36:32 +0800 Subject: [PATCH] docs: revert code-file change to satisfy docs labeling gate Signed-off-by: Rohan5commit <181558744+Rohan5commit@users.noreply.github.com> --- 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 42674b476c..661043ce7b 100644 --- a/fastapi/security/oauth2.py +++ b/fastapi/security/oauth2.py @@ -53,7 +53,7 @@ class OAuth2PasswordRequestForm: You could have custom internal logic to separate it by colon characters (`:`) or similar, and get the two parts `items` and `read`. Many applications do that to group and organize permissions, you could do it as well in your application, just - know that it is application specific, it's not part of the specification. + know that that it is application specific, it's not part of the specification. """ def __init__( @@ -207,7 +207,7 @@ class OAuth2PasswordRequestFormStrict(OAuth2PasswordRequestForm): You could have custom internal logic to separate it by colon characters (`:`) or similar, and get the two parts `items` and `read`. Many applications do that to group and organize permissions, you could do it as well in your application, just - know that it is application specific, it's not part of the specification. + know that that it is application specific, it's not part of the specification. grant_type: the OAuth2 spec says it is required and MUST be the fixed string "password".