Skip to content

Commit 8778afe

Browse files
committed
fix actions error
1 parent 0865b9d commit 8778afe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nest/core/decorators/guards.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from fastapi import Request, HTTPException, status, Security
22
from fastapi.security.base import SecurityBase
3+
from typing import Optional
34
import inspect
45

56

@@ -194,7 +195,7 @@ def protected_route(self):
194195
- Enable interactive authentication testing
195196
"""
196197

197-
security_scheme: SecurityBase | None = None
198+
security_scheme: Optional[SecurityBase] = None
198199

199200
def can_activate(self, request: Request, credentials=None) -> bool:
200201
"""Determine if the request should be allowed to proceed.

0 commit comments

Comments
 (0)