Skip to content

Commit dc6f1ac

Browse files
authored
Merge pull request #114 from tomgrin10/requestish-type
Improve Requestish type
2 parents 1a64da9 + bfa42c4 commit dc6f1ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/clerk_backend_api/jwks_helpers/authenticaterequest.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from dataclasses import dataclass
22
from enum import Enum
33
from http.cookies import SimpleCookie
4-
from typing import Any, Dict, List, Union, Optional, Protocol
4+
from typing import Any, Dict, List, Union, Optional, Protocol, Mapping
55
from warnings import warn
66

77
from .verifytoken import (
@@ -13,7 +13,9 @@
1313

1414

1515
class Requestish(Protocol):
16-
headers: Dict[str, str]
16+
@property
17+
def headers(self) -> Mapping[str, str]:
18+
...
1719

1820

1921
class AuthErrorReason(Enum):

0 commit comments

Comments
 (0)