Skip to content

Commit 5acb766

Browse files
gjtorikianclaude
andcommitted
Make uri field required in RedirectUriInput
Use TypedDict inheritance pattern (Python 3.8+ compatible) so that uri is a required key while default remains optional. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 96eded5 commit 5acb766

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
from typing import Optional
2-
31
from typing_extensions import TypedDict
42

53

6-
class RedirectUriInput(TypedDict, total=False):
4+
class _RedirectUriInputRequired(TypedDict):
75
uri: str
8-
default: Optional[bool]
6+
7+
8+
class RedirectUriInput(_RedirectUriInputRequired, total=False):
9+
default: bool

0 commit comments

Comments
 (0)