Skip to content

Commit 4d48c21

Browse files
authored
Fix python 3.9 dev dependencies (#568)
1 parent 3169670 commit 4d48c21

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

gql/transport/aiohttp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _prepare_request(
173173
upload_files: bool = False,
174174
) -> Dict[str, Any]:
175175

176-
payload: Dict | List
176+
payload: Union[Dict, List]
177177
if isinstance(request, GraphQLRequest):
178178
payload = request.payload
179179
else:

gql/transport/httpx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _prepare_request(
6666
upload_files: bool = False,
6767
) -> Dict[str, Any]:
6868

69-
payload: Dict | List
69+
payload: Union[Dict, List]
7070
if isinstance(request, GraphQLRequest):
7171
payload = request.payload
7272
else:

gql/transport/requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _prepare_request(
147147
upload_files: bool = False,
148148
) -> Dict[str, Any]:
149149

150-
payload: Dict | List
150+
payload: Union[Dict, List]
151151
if isinstance(request, GraphQLRequest):
152152
payload = request.payload
153153
else:

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"sphinx>=7.0.0,<8;python_version<='3.9'",
3333
"sphinx>=8.1.0,<9;python_version>'3.9'",
3434
"sphinx_rtd_theme>=3.0.2,<4",
35-
"sphinx-argparse==0.5.2",
35+
"sphinx-argparse==0.5.2; python_version>='3.10'",
36+
"sphinx-argparse==0.4.0; python_version<'3.10'",
3637
"types-aiofiles",
3738
"types-requests",
3839
] + tests_requires

0 commit comments

Comments
 (0)