From 61f468e759bb0ba0ef7a32bb9d6f9c38b9e22f9a Mon Sep 17 00:00:00 2001 From: Kwame Wright Date: Fri, 9 May 2025 18:13:09 -0700 Subject: [PATCH 1/2] Update typing import --- docs_src/dependencies/tutorial012_an_py39.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs_src/dependencies/tutorial012_an_py39.py b/docs_src/dependencies/tutorial012_an_py39.py index 7541e6bf4..63e93132d 100644 --- a/docs_src/dependencies/tutorial012_an_py39.py +++ b/docs_src/dependencies/tutorial012_an_py39.py @@ -1,5 +1,5 @@ from fastapi import Depends, FastAPI, Header, HTTPException -from typing_extensions import Annotated +from typing import Annotated async def verify_token(x_token: Annotated[str, Header()]): From 8df0b7501c2cb722aa8cf2c670f7f9505e06190e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 10 May 2025 01:29:48 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20for?= =?UTF-8?q?mat=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs_src/dependencies/tutorial012_an_py39.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs_src/dependencies/tutorial012_an_py39.py b/docs_src/dependencies/tutorial012_an_py39.py index 63e93132d..6503591fc 100644 --- a/docs_src/dependencies/tutorial012_an_py39.py +++ b/docs_src/dependencies/tutorial012_an_py39.py @@ -1,6 +1,7 @@ -from fastapi import Depends, FastAPI, Header, HTTPException from typing import Annotated +from fastapi import Depends, FastAPI, Header, HTTPException + async def verify_token(x_token: Annotated[str, Header()]): if x_token != "fake-super-secret-token":