Skip to content

Commit e6ed103

Browse files
🎨 Auto format
1 parent f3d2311 commit e6ed103

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/test_security_oauth2_client_credentials_description.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from typing import Optional
2-
31
from fastapi import FastAPI, Security
42
from fastapi.security import OAuth2ClientCredentials
53
from fastapi.testclient import TestClient
@@ -14,7 +12,7 @@
1412

1513

1614
@app.get("/items/")
17-
async def read_items(token: Optional[str] = Security(oauth2_scheme)):
15+
async def read_items(token: str | None = Security(oauth2_scheme)):
1816
return {"token": token}
1917

2018

0 commit comments

Comments
 (0)