Skip to content

Commit 9e4a436

Browse files
AdirAmsalemclaude
andcommitted
fix: use typing_extensions.TypedDict for Python <3.12 compat
Also fix black formatting in test file. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5d8101a commit 9e4a436

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

decart/tokens/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import TypedDict
1+
from typing_extensions import TypedDict
22

33
from pydantic import BaseModel
44

tests/test_tokens.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,7 @@ async def test_create_token_with_constraints() -> None:
185185
await client.tokens.create(constraints=constraints)
186186

187187
call_kwargs = mock_session.post.call_args
188-
assert call_kwargs.kwargs["json"] == {
189-
"constraints": {"realtime": {"maxSessionDuration": 120}}
190-
}
188+
assert call_kwargs.kwargs["json"] == {"constraints": {"realtime": {"maxSessionDuration": 120}}}
191189

192190

193191
@pytest.mark.asyncio

0 commit comments

Comments
 (0)