Skip to content

Commit 31bbb38

Browse files
AhsanSherazahsansheraz-bonialclaude
authored
📝 Fix duplicated words in docstrings (#15116)
Fix "to to" and "that that" word duplications in security module docstrings, and "be be" in test data string. Co-authored-by: ahsan.sheraz <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]>
1 parent eb6851d commit 31bbb38

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

fastapi/security/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class HTTPDigest(HTTPBase):
321321
HTTP Digest authentication.
322322
323323
**Warning**: this is only a stub to connect the components with OpenAPI in FastAPI,
324-
but it doesn't implement the full Digest scheme, you would need to to subclass it
324+
but it doesn't implement the full Digest scheme, you would need to subclass it
325325
and implement it in your code.
326326
327327
Ref: https://datatracker.ietf.org/doc/html/rfc7616

fastapi/security/oauth2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def login(form_data: Annotated[OAuth2PasswordRequestForm, Depends()]):
5353
You could have custom internal logic to separate it by colon characters (`:`) or
5454
similar, and get the two parts `items` and `read`. Many applications do that to
5555
group and organize permissions, you could do it as well in your application, just
56-
know that that it is application specific, it's not part of the specification.
56+
know that it is application specific, it's not part of the specification.
5757
"""
5858

5959
def __init__(
@@ -207,7 +207,7 @@ def login(form_data: Annotated[OAuth2PasswordRequestFormStrict, Depends()]):
207207
You could have custom internal logic to separate it by colon characters (`:`) or
208208
similar, and get the two parts `items` and `read`. Many applications do that to
209209
group and organize permissions, you could do it as well in your application, just
210-
know that that it is application specific, it's not part of the specification.
210+
know that it is application specific, it's not part of the specification.
211211
212212
213213
grant_type: the OAuth2 spec says it is required and MUST be the fixed string "password".

fastapi/security/open_id_connect_url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class OpenIdConnect(SecurityBase):
1515
1616
**Warning**: this is only a stub to connect the components with OpenAPI in FastAPI,
1717
but it doesn't implement the full OpenIdConnect scheme, for example, it doesn't use
18-
the OpenIDConnect URL. You would need to to subclass it and implement it in your
18+
the OpenIDConnect URL. You would need to subclass it and implement it in your
1919
code.
2020
"""
2121

tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def read_item():
2828
"id": uuid.uuid4(),
2929
"name": "Island In The Moon",
3030
"price": 12.99,
31-
"description": "A place to be be playin' and havin' fun",
31+
"description": "A place to be playin' and havin' fun",
3232
"tags": ["breater"],
3333
}
3434

@@ -45,7 +45,7 @@ def test_annotations():
4545
"name": "Island In The Moon",
4646
"price": 12.99,
4747
"tags": ["breater"],
48-
"description": "A place to be be playin' and havin' fun",
48+
"description": "A place to be playin' and havin' fun",
4949
"tax": None,
5050
}
5151
)

0 commit comments

Comments
 (0)