Skip to content

Commit 45f8eca

Browse files
fix: update types for pty control, use int instead of str (#9235)
1 parent e0595cf commit 45f8eca

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 119
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-40b78fbce4172c1fdab1559718cc9a7ba6b47402ee0bcb8dbefa582448958384.yml
3-
openapi_spec_hash: 78673375a4e58f7b4cea847ce2686b0e
4-
config_hash: 07d725fff578f22e8cb52e3c588f24c6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-6ec03cfc156036a0758aebc523b469f3007de431312c536c434efe795e1892e7.yml
3+
openapi_spec_hash: 092761a0209e0950cfd8f262a981adb1
4+
config_hash: 06faf3176c48bf2b258730ce50809f0f

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ Methods:
285285
Types:
286286

287287
```python
288-
from runloop_api_client.types import PtyConnectView, PtyControlParameters, PtyControlResultView
288+
from runloop_api_client.types import PtyConnectView, PtyControlParams, PtyControlResultView
289289
```
290290

291291
Methods:

src/runloop_api_client/resources/pty.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def connect(
4848
self,
4949
session_name: str,
5050
*,
51-
cols: str | Omit = omit,
52-
rows: str | Omit = omit,
51+
cols: int | Omit = omit,
52+
rows: int | Omit = omit,
5353
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5454
# The extra values given here take precedence over values defined on the client or passed to this method.
5555
extra_headers: Headers | None = None,
@@ -221,8 +221,8 @@ async def connect(
221221
self,
222222
session_name: str,
223223
*,
224-
cols: str | Omit = omit,
225-
rows: str | Omit = omit,
224+
cols: int | Omit = omit,
225+
rows: int | Omit = omit,
226226
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
227227
# The extra values given here take precedence over values defined on the client or passed to this method.
228228
extra_headers: Headers | None = None,

src/runloop_api_client/types/pty_connect_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99

1010
class PtyConnectParams(TypedDict, total=False):
11-
cols: str
11+
cols: int
1212
"""Optional initial terminal width in character cells (1..=1000).
1313
1414
Defaults to 80 when omitted. Applied only if both cols and rows are provided;
1515
otherwise ignored.
1616
"""
1717

18-
rows: str
18+
rows: int
1919
"""Optional initial terminal height in character cells (1..=1000).
2020
2121
Defaults to 24 when omitted. Applied only if both cols and rows are provided;

tests/api_resources/test_pty.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def test_method_connect(self, client: Runloop) -> None:
2828
def test_method_connect_with_all_params(self, client: Runloop) -> None:
2929
pty = client.pty.connect(
3030
session_name="session_name",
31-
cols="cols",
32-
rows="rows",
31+
cols=0,
32+
rows=0,
3333
)
3434
assert_matches_type(PtyConnectView, pty, path=["response"])
3535

@@ -130,8 +130,8 @@ async def test_method_connect(self, async_client: AsyncRunloop) -> None:
130130
async def test_method_connect_with_all_params(self, async_client: AsyncRunloop) -> None:
131131
pty = await async_client.pty.connect(
132132
session_name="session_name",
133-
cols="cols",
134-
rows="rows",
133+
cols=0,
134+
rows=0,
135135
)
136136
assert_matches_type(PtyConnectView, pty, path=["response"])
137137

0 commit comments

Comments
 (0)