From e6ed1039c8d65d1ba2a167e96cb924bdffa21731 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Thu, 12 Feb 2026 08:56:21 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Auto=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_security_oauth2_client_credentials_description.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_security_oauth2_client_credentials_description.py b/tests/test_security_oauth2_client_credentials_description.py index 64a62203f0..ab168de718 100644 --- a/tests/test_security_oauth2_client_credentials_description.py +++ b/tests/test_security_oauth2_client_credentials_description.py @@ -1,5 +1,3 @@ -from typing import Optional - from fastapi import FastAPI, Security from fastapi.security import OAuth2ClientCredentials from fastapi.testclient import TestClient @@ -14,7 +12,7 @@ oauth2_scheme = OAuth2ClientCredentials( @app.get("/items/") -async def read_items(token: Optional[str] = Security(oauth2_scheme)): +async def read_items(token: str | None = Security(oauth2_scheme)): return {"token": token}