File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 77from urllib .parse import urlencode , urlsplit , urlunsplit
88
99import requests
10- from typing_extensions import Literal
10+
11+ # Literal is available from Python 3.8
12+ try :
13+ from typing import Literal
14+ except ImportError :
15+ from typing_extensions import Literal
1116
1217import openai
1318from openai import error , util , version
Original file line number Diff line number Diff line change 2525 "pandas-stubs>=1.1.0.11" , # Needed for type hints for mypy
2626 "openpyxl>=3.0.7" , # Needed for CLI fine-tuning data preparation tool xlsx format
2727 "numpy" ,
28- " typing_extensions" , # Needed for type hints for mypy
28+ ' typing_extensions;python_version<"3.8"' , # Needed for type hints for mypy
2929 ],
3030 extras_require = {
3131 "dev" : ["black~=21.6b0" , "pytest==6.*" ],
You can’t perform that action at this time.
0 commit comments