Skip to content

Commit 48a1822

Browse files
committed
Undo type renames
1 parent b5302be commit 48a1822

File tree

7 files changed

+40
-40
lines changed

7 files changed

+40
-40
lines changed

src/pipedream/apps/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from importlib import import_module
77

88
if typing.TYPE_CHECKING:
9-
from .types import ListAppsRequestSortDirection, ListAppsRequestSortKey
10-
_dynamic_imports: typing.Dict[str, str] = {"ListAppsRequestSortDirection": ".types", "ListAppsRequestSortKey": ".types"}
9+
from .types import AppsListRequestSortDirection, AppsListRequestSortKey
10+
_dynamic_imports: typing.Dict[str, str] = {"AppsListRequestSortDirection": ".types", "AppsListRequestSortKey": ".types"}
1111

1212

1313
def __getattr__(attr_name: str) -> typing.Any:
@@ -31,4 +31,4 @@ def __dir__():
3131
return sorted(lazy_attrs)
3232

3333

34-
__all__ = ["ListAppsRequestSortDirection", "ListAppsRequestSortKey"]
34+
__all__ = ["AppsListRequestSortDirection", "AppsListRequestSortKey"]

src/pipedream/apps/client.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from ..types.app import App
99
from ..types.get_app_response import GetAppResponse
1010
from .raw_client import AsyncRawAppsClient, RawAppsClient
11-
from .types.list_apps_request_sort_direction import ListAppsRequestSortDirection
12-
from .types.list_apps_request_sort_key import ListAppsRequestSortKey
11+
from .types.apps_list_request_sort_direction import AppsListRequestSortDirection
12+
from .types.apps_list_request_sort_key import AppsListRequestSortKey
1313

1414

1515
class AppsClient:
@@ -34,8 +34,8 @@ def list(
3434
before: typing.Optional[str] = None,
3535
limit: typing.Optional[int] = None,
3636
q: typing.Optional[str] = None,
37-
sort_key: typing.Optional[ListAppsRequestSortKey] = None,
38-
sort_direction: typing.Optional[ListAppsRequestSortDirection] = None,
37+
sort_key: typing.Optional[AppsListRequestSortKey] = None,
38+
sort_direction: typing.Optional[AppsListRequestSortDirection] = None,
3939
category_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
4040
request_options: typing.Optional[RequestOptions] = None,
4141
) -> SyncPager[App]:
@@ -56,10 +56,10 @@ def list(
5656
q : typing.Optional[str]
5757
A search query to filter the apps
5858
59-
sort_key : typing.Optional[ListAppsRequestSortKey]
59+
sort_key : typing.Optional[AppsListRequestSortKey]
6060
The key to sort the apps by
6161
62-
sort_direction : typing.Optional[ListAppsRequestSortDirection]
62+
sort_direction : typing.Optional[AppsListRequestSortDirection]
6363
The direction to sort the apps
6464
6565
category_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
@@ -158,8 +158,8 @@ async def list(
158158
before: typing.Optional[str] = None,
159159
limit: typing.Optional[int] = None,
160160
q: typing.Optional[str] = None,
161-
sort_key: typing.Optional[ListAppsRequestSortKey] = None,
162-
sort_direction: typing.Optional[ListAppsRequestSortDirection] = None,
161+
sort_key: typing.Optional[AppsListRequestSortKey] = None,
162+
sort_direction: typing.Optional[AppsListRequestSortDirection] = None,
163163
category_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
164164
request_options: typing.Optional[RequestOptions] = None,
165165
) -> AsyncPager[App]:
@@ -180,10 +180,10 @@ async def list(
180180
q : typing.Optional[str]
181181
A search query to filter the apps
182182
183-
sort_key : typing.Optional[ListAppsRequestSortKey]
183+
sort_key : typing.Optional[AppsListRequestSortKey]
184184
The key to sort the apps by
185185
186-
sort_direction : typing.Optional[ListAppsRequestSortDirection]
186+
sort_direction : typing.Optional[AppsListRequestSortDirection]
187187
The direction to sort the apps
188188
189189
category_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]

src/pipedream/apps/raw_client.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
from ..types.app import App
1414
from ..types.get_app_response import GetAppResponse
1515
from ..types.list_apps_response import ListAppsResponse
16-
from .types.list_apps_request_sort_direction import ListAppsRequestSortDirection
17-
from .types.list_apps_request_sort_key import ListAppsRequestSortKey
16+
from .types.apps_list_request_sort_direction import AppsListRequestSortDirection
17+
from .types.apps_list_request_sort_key import AppsListRequestSortKey
1818

1919

2020
class RawAppsClient:
@@ -28,8 +28,8 @@ def list(
2828
before: typing.Optional[str] = None,
2929
limit: typing.Optional[int] = None,
3030
q: typing.Optional[str] = None,
31-
sort_key: typing.Optional[ListAppsRequestSortKey] = None,
32-
sort_direction: typing.Optional[ListAppsRequestSortDirection] = None,
31+
sort_key: typing.Optional[AppsListRequestSortKey] = None,
32+
sort_direction: typing.Optional[AppsListRequestSortDirection] = None,
3333
category_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
3434
request_options: typing.Optional[RequestOptions] = None,
3535
) -> SyncPager[App]:
@@ -50,10 +50,10 @@ def list(
5050
q : typing.Optional[str]
5151
A search query to filter the apps
5252
53-
sort_key : typing.Optional[ListAppsRequestSortKey]
53+
sort_key : typing.Optional[AppsListRequestSortKey]
5454
The key to sort the apps by
5555
56-
sort_direction : typing.Optional[ListAppsRequestSortDirection]
56+
sort_direction : typing.Optional[AppsListRequestSortDirection]
5757
The direction to sort the apps
5858
5959
category_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
@@ -165,8 +165,8 @@ async def list(
165165
before: typing.Optional[str] = None,
166166
limit: typing.Optional[int] = None,
167167
q: typing.Optional[str] = None,
168-
sort_key: typing.Optional[ListAppsRequestSortKey] = None,
169-
sort_direction: typing.Optional[ListAppsRequestSortDirection] = None,
168+
sort_key: typing.Optional[AppsListRequestSortKey] = None,
169+
sort_direction: typing.Optional[AppsListRequestSortDirection] = None,
170170
category_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
171171
request_options: typing.Optional[RequestOptions] = None,
172172
) -> AsyncPager[App]:
@@ -187,10 +187,10 @@ async def list(
187187
q : typing.Optional[str]
188188
A search query to filter the apps
189189
190-
sort_key : typing.Optional[ListAppsRequestSortKey]
190+
sort_key : typing.Optional[AppsListRequestSortKey]
191191
The key to sort the apps by
192192
193-
sort_direction : typing.Optional[ListAppsRequestSortDirection]
193+
sort_direction : typing.Optional[AppsListRequestSortDirection]
194194
The direction to sort the apps
195195
196196
category_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]

src/pipedream/apps/types/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
from importlib import import_module
77

88
if typing.TYPE_CHECKING:
9-
from .list_apps_request_sort_direction import ListAppsRequestSortDirection
10-
from .list_apps_request_sort_key import ListAppsRequestSortKey
9+
from .apps_list_request_sort_direction import AppsListRequestSortDirection
10+
from .apps_list_request_sort_key import AppsListRequestSortKey
1111
_dynamic_imports: typing.Dict[str, str] = {
12-
"ListAppsRequestSortDirection": ".list_apps_request_sort_direction",
13-
"ListAppsRequestSortKey": ".list_apps_request_sort_key",
12+
"AppsListRequestSortDirection": ".apps_list_request_sort_direction",
13+
"AppsListRequestSortKey": ".apps_list_request_sort_key",
1414
}
1515

1616

@@ -35,4 +35,4 @@ def __dir__():
3535
return sorted(lazy_attrs)
3636

3737

38-
__all__ = ["ListAppsRequestSortDirection", "ListAppsRequestSortKey"]
38+
__all__ = ["AppsListRequestSortDirection", "AppsListRequestSortKey"]

src/pipedream/apps/types/list_apps_request_sort_direction.py renamed to src/pipedream/apps/types/apps_list_request_sort_direction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
import typing
44

5-
ListAppsRequestSortDirection = typing.Union[typing.Literal["asc", "desc"], typing.Any]
5+
AppsListRequestSortDirection = typing.Union[typing.Literal["asc", "desc"], typing.Any]

src/pipedream/apps/types/list_apps_request_sort_key.py renamed to src/pipedream/apps/types/apps_list_request_sort_key.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
import typing
44

5-
ListAppsRequestSortKey = typing.Union[typing.Literal["name", "name_slug", "featured_weight"], typing.Any]
5+
AppsListRequestSortKey = typing.Union[typing.Literal["name", "name_slug", "featured_weight"], typing.Any]

src/pipedream/proxy/client.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def get(
8686
}
8787
request_options = RequestOptions(
8888
additional_headers=downstream_headers,
89-
additional_query_parameters=params,
89+
additional_query_parameters=params or {},
9090
)
9191
_response = self._raw_client.get(
9292
url_64,
@@ -160,7 +160,7 @@ def post(
160160
}
161161
request_options = RequestOptions(
162162
additional_headers=downstream_headers,
163-
additional_query_parameters=params,
163+
additional_query_parameters=params or {},
164164
)
165165
_response = self._raw_client.post(
166166
url_64,
@@ -235,7 +235,7 @@ def put(
235235
}
236236
request_options = RequestOptions(
237237
additional_headers=downstream_headers,
238-
additional_query_parameters=params,
238+
additional_query_parameters=params or {},
239239
)
240240
_response = self._raw_client.put(
241241
url_64,
@@ -302,7 +302,7 @@ def delete(
302302
}
303303
request_options = RequestOptions(
304304
additional_headers=downstream_headers,
305-
additional_query_parameters=params,
305+
additional_query_parameters=params or {},
306306
)
307307
_response = self._raw_client.delete(
308308
url_64,
@@ -376,7 +376,7 @@ def patch(
376376
}
377377
request_options = RequestOptions(
378378
additional_headers=downstream_headers,
379-
additional_query_parameters=params,
379+
additional_query_parameters=params or {},
380380
)
381381
_response = self._raw_client.patch(
382382
url_64,
@@ -470,7 +470,7 @@ async def main() -> None:
470470
}
471471
request_options = RequestOptions(
472472
additional_headers=downstream_headers,
473-
additional_query_parameters=params,
473+
additional_query_parameters=params or {},
474474
)
475475
_response = await self._raw_client.get(
476476
url_64,
@@ -551,7 +551,7 @@ async def main() -> None:
551551
}
552552
request_options = RequestOptions(
553553
additional_headers=downstream_headers,
554-
additional_query_parameters=params,
554+
additional_query_parameters=params or {},
555555
)
556556
_response = await self._raw_client.post(
557557
url_64,
@@ -634,7 +634,7 @@ async def main() -> None:
634634
}
635635
request_options = RequestOptions(
636636
additional_headers=downstream_headers,
637-
additional_query_parameters=params,
637+
additional_query_parameters=params or {},
638638
)
639639
_response = await self._raw_client.put(
640640
url_64,
@@ -709,7 +709,7 @@ async def main() -> None:
709709
}
710710
request_options = RequestOptions(
711711
additional_headers=downstream_headers,
712-
additional_query_parameters=params,
712+
additional_query_parameters=params or {},
713713
)
714714
_response = await self._raw_client.delete(
715715
url_64,
@@ -790,7 +790,7 @@ async def main() -> None:
790790
}
791791
request_options = RequestOptions(
792792
additional_headers=downstream_headers,
793-
additional_query_parameters=params,
793+
additional_query_parameters=params or {},
794794
)
795795
_response = await self._raw_client.patch(
796796
url_64,

0 commit comments

Comments
 (0)