Skip to content

Commit de6e4e4

Browse files
refactor(types): use extra_items from PEP 728
1 parent 1aae853 commit de6e4e4

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/dedalus_labs/types/shared_params/reasoning.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Union, Optional
6-
from typing_extensions import Literal, TypeAlias, TypedDict
5+
from typing import Optional
6+
from typing_extensions import Literal, TypedDict
77

88
__all__ = ["Reasoning"]
99

1010

11-
class ReasoningTyped(TypedDict, total=False):
11+
class Reasoning(TypedDict, total=False, extra_items=object): # type: ignore[call-arg]
1212
"""**gpt-5 and o-series models only**
1313
1414
Configuration options for
@@ -20,6 +20,3 @@ class ReasoningTyped(TypedDict, total=False):
2020
generate_summary: Optional[Literal["auto", "concise", "detailed"]]
2121

2222
summary: Optional[Literal["auto", "concise", "detailed"]]
23-
24-
25-
Reasoning: TypeAlias = Union[ReasoningTyped, Dict[str, object]]

0 commit comments

Comments
 (0)