From 4a3cada1630f3a74991405ce15d670add31c5985 Mon Sep 17 00:00:00 2001 From: nahcmon Date: Mon, 8 Jun 2026 23:34:33 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Fix=20four-backtick=20code=20fen?= =?UTF-8?q?ce=20in=20OAuth2PasswordRequestForm=20docstrings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both OAuth2PasswordRequestForm and OAuth2PasswordRequestFormStrict had a closing ```` ``` ```` with four backticks instead of the standard three. The mismatch left a stray backtick in generated reference docs (e.g. `help()` output and any doc-builder that parses the docstring). Co-Authored-By: Claude Sonnet 4.6 --- 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 3fd9e41eb3..53a114831f 100644 --- a/fastapi/security/oauth2.py +++ b/fastapi/security/oauth2.py @@ -112,7 +112,7 @@ class OAuth2PasswordRequestForm: ```python "items:read items:write users:read profile openid" - ```` + ``` would represent the scopes: @@ -278,7 +278,7 @@ class OAuth2PasswordRequestFormStrict(OAuth2PasswordRequestForm): ```python "items:read items:write users:read profile openid" - ```` + ``` would represent the scopes: