We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0865b9d commit 8778afeCopy full SHA for 8778afe
nest/core/decorators/guards.py
@@ -1,5 +1,6 @@
1
from fastapi import Request, HTTPException, status, Security
2
from fastapi.security.base import SecurityBase
3
+from typing import Optional
4
import inspect
5
6
@@ -194,7 +195,7 @@ def protected_route(self):
194
195
- Enable interactive authentication testing
196
"""
197
- security_scheme: SecurityBase | None = None
198
+ security_scheme: Optional[SecurityBase] = None
199
200
def can_activate(self, request: Request, credentials=None) -> bool:
201
"""Determine if the request should be allowed to proceed.
0 commit comments