Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2522bd5

Browse files
author
Stainless Bot
committedSep 24, 2024·
chore(internal): use typing_extensions.overload instead of typing (#1740)
1 parent 89e5a01 commit 2522bd5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed
 

‎src/openai/resources/beta/threads/runs/runs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
from __future__ import annotations
44

55
import typing_extensions
6-
from typing import List, Union, Iterable, Optional, overload
6+
from typing import List, Union, Iterable, Optional
77
from functools import partial
8-
from typing_extensions import Literal
8+
from typing_extensions import Literal, overload
99

1010
import httpx
1111

‎src/openai/resources/beta/threads/threads.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
from __future__ import annotations
44

5-
from typing import Union, Iterable, Optional, overload
5+
from typing import Union, Iterable, Optional
66
from functools import partial
7-
from typing_extensions import Literal
7+
from typing_extensions import Literal, overload
88

99
import httpx
1010

‎src/openai/resources/chat/completions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from __future__ import annotations
44

55
import inspect
6-
from typing import Dict, List, Union, Iterable, Optional, overload
7-
from typing_extensions import Literal
6+
from typing import Dict, List, Union, Iterable, Optional
7+
from typing_extensions import Literal, overload
88

99
import httpx
1010
import pydantic

‎src/openai/resources/completions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, List, Union, Iterable, Optional, overload
6-
from typing_extensions import Literal
5+
from typing import Dict, List, Union, Iterable, Optional
6+
from typing_extensions import Literal, overload
77

88
import httpx
99

0 commit comments

Comments
 (0)
Please sign in to comment.