File tree Expand file tree Collapse file tree 3 files changed +19
-11
lines changed Expand file tree Collapse file tree 3 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5- from typing import Type , cast
5+ from typing import Any , cast
66
77import httpx
88
@@ -78,7 +78,9 @@ def get(
7878 timeout = timeout ,
7979 post_parser = ResultWrapper [Workflow ]._unwrapper ,
8080 ),
81- cast_to = cast (Type [Workflow ], ResultWrapper [Workflow ]),
81+ cast_to = cast (
82+ Any , ResultWrapper [Workflow ]
83+ ), # Enum types cannot be passed in as arguments in the type system
8284 )
8385
8486
@@ -138,7 +140,9 @@ async def get(
138140 timeout = timeout ,
139141 post_parser = ResultWrapper [Workflow ]._unwrapper ,
140142 ),
141- cast_to = cast (Type [Workflow ], ResultWrapper [Workflow ]),
143+ cast_to = cast (
144+ Any , ResultWrapper [Workflow ]
145+ ), # Enum types cannot be passed in as arguments in the type system
142146 )
143147
144148
Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5- from typing import Type , cast
5+ from typing import Any , cast
66
77import httpx
88
@@ -156,7 +156,9 @@ def update(
156156 timeout = timeout ,
157157 post_parser = ResultWrapper [Workflow ]._unwrapper ,
158158 ),
159- cast_to = cast (Type [Workflow ], ResultWrapper [Workflow ]),
159+ cast_to = cast (
160+ Any , ResultWrapper [Workflow ]
161+ ), # Enum types cannot be passed in as arguments in the type system
160162 )
161163
162164
@@ -244,7 +246,9 @@ async def update(
244246 timeout = timeout ,
245247 post_parser = ResultWrapper [Workflow ]._unwrapper ,
246248 ),
247- cast_to = cast (Type [Workflow ], ResultWrapper [Workflow ]),
249+ cast_to = cast (
250+ Any , ResultWrapper [Workflow ]
251+ ), # Enum types cannot be passed in as arguments in the type system
248252 )
249253
250254
Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5- from typing import Type , Optional , cast
5+ from typing import Any , Type , Optional , cast
66
77import httpx
88
@@ -405,8 +405,8 @@ def revoke_users(
405405 post_parser = ResultWrapper [Optional [OrganizationRevokeUsersResponse ]]._unwrapper ,
406406 ),
407407 cast_to = cast (
408- Type [ Optional [ OrganizationRevokeUsersResponse ]] , ResultWrapper [OrganizationRevokeUsersResponse ]
409- ),
408+ Any , ResultWrapper [OrganizationRevokeUsersResponse ]
409+ ), # Enum types cannot be passed in as arguments in the type system
410410 )
411411
412412
@@ -777,8 +777,8 @@ async def revoke_users(
777777 post_parser = ResultWrapper [Optional [OrganizationRevokeUsersResponse ]]._unwrapper ,
778778 ),
779779 cast_to = cast (
780- Type [ Optional [ OrganizationRevokeUsersResponse ]] , ResultWrapper [OrganizationRevokeUsersResponse ]
781- ),
780+ Any , ResultWrapper [OrganizationRevokeUsersResponse ]
781+ ), # Enum types cannot be passed in as arguments in the type system
782782 )
783783
784784
You can’t perform that action at this time.
0 commit comments