Skip to content

Commit d58e9b4

Browse files
authored
fix(cloud)!: change *_and_poll signature types to correspond to regular methods
1 parent 8fc9566 commit d58e9b4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/gcore/resources/cloud/baremetal/servers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def create_and_poll(
404404
region_id: int | None = None,
405405
flavor: str,
406406
interfaces: Iterable[server_create_params.Interface],
407-
app_config: Optional[object] | Omit = omit,
407+
app_config: Optional[Dict[str, object]] | Omit = omit,
408408
apptemplate_id: str | Omit = omit,
409409
ddos_profile: server_create_params.DDOSProfile | Omit = omit,
410410
image_id: str | Omit = omit,
@@ -896,7 +896,7 @@ async def create_and_poll(
896896
region_id: int | None = None,
897897
flavor: str,
898898
interfaces: Iterable[server_create_params.Interface],
899-
app_config: Optional[object] | Omit = omit,
899+
app_config: Optional[Dict[str, object]] | Omit = omit,
900900
apptemplate_id: str | Omit = omit,
901901
ddos_profile: server_create_params.DDOSProfile | Omit = omit,
902902
image_id: str | Omit = omit,

src/gcore/resources/cloud/instances/instances.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def create_and_poll(
272272
interfaces: Iterable[instance_create_params.Interface],
273273
volumes: Iterable[instance_create_params.Volume],
274274
allow_app_ports: bool | Omit = omit,
275-
configuration: Optional[object] | Omit = omit,
275+
configuration: Optional[Dict[str, object]] | Omit = omit,
276276
name: str | Omit = omit,
277277
name_template: str | Omit = omit,
278278
password: str | Omit = omit,
@@ -1696,7 +1696,7 @@ async def create_and_poll(
16961696
interfaces: Iterable[instance_create_params.Interface],
16971697
volumes: Iterable[instance_create_params.Volume],
16981698
allow_app_ports: bool | Omit = omit,
1699-
configuration: Optional[object] | Omit = omit,
1699+
configuration: Optional[Dict[str, object]] | Omit = omit,
17001700
name: str | Omit = omit,
17011701
name_template: str | Omit = omit,
17021702
password: str | Omit = omit,

0 commit comments

Comments
 (0)