Skip to content

Commit cbbe32c

Browse files
authored
Merge pull request #89 from clear-street/release-please--branches--main--changes--next
release: 0.1.0-alpha.18
2 parents a7d3b62 + c4c13c4 commit cbbe32c

46 files changed

Lines changed: 358 additions & 103 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
lint:
1313
name: lint
1414
runs-on: ubuntu-latest
15-
1615

1716
steps:
1817
- uses: actions/checkout@v4
@@ -30,6 +29,7 @@ jobs:
3029

3130
- name: Run lints
3231
run: ./scripts/lint
32+
3333
test:
3434
name: test
3535
runs-on: ubuntu-latest
@@ -50,4 +50,3 @@ jobs:
5050

5151
- name: Run tests
5252
run: ./scripts/test
53-

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.17"
2+
".": "0.1.0-alpha.18"
33
}

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# Changelog
22

3+
## 0.1.0-alpha.18 (2025-02-14)
4+
5+
Full Changelog: [v0.1.0-alpha.17...v0.1.0-alpha.18](https://github.com/clear-street/studio-sdk-python/compare/v0.1.0-alpha.17...v0.1.0-alpha.18)
6+
7+
### Features
8+
9+
* **client:** send `X-Stainless-Read-Timeout` header ([#106](https://github.com/clear-street/studio-sdk-python/issues/106)) ([8357a68](https://github.com/clear-street/studio-sdk-python/commit/8357a685952e2f52457ee7c518bf7214191cb7b6))
10+
11+
12+
### Bug Fixes
13+
14+
* **api:** better support union schemas with common properties ([#95](https://github.com/clear-street/studio-sdk-python/issues/95)) ([7ea9b5e](https://github.com/clear-street/studio-sdk-python/commit/7ea9b5ed2d55c42e6bda4ac896ef73d665cbba53))
15+
* asyncify on non-asyncio runtimes ([#109](https://github.com/clear-street/studio-sdk-python/issues/109)) ([37e16e8](https://github.com/clear-street/studio-sdk-python/commit/37e16e870b782fc246b8ce8d52d5819cd53614b4))
16+
* **client:** only call .close() when needed ([#92](https://github.com/clear-street/studio-sdk-python/issues/92)) ([090806b](https://github.com/clear-street/studio-sdk-python/commit/090806b20ea46fac9dd170feb98fe95ad26ebd8b))
17+
* correctly handle deserialising `cls` fields ([#96](https://github.com/clear-street/studio-sdk-python/issues/96)) ([13bed11](https://github.com/clear-street/studio-sdk-python/commit/13bed116c380e0e3215f61258e5b70dce5d45b4c))
18+
* deduplicate unknown entries in union ([#103](https://github.com/clear-street/studio-sdk-python/issues/103)) ([25b27e4](https://github.com/clear-street/studio-sdk-python/commit/25b27e43024e634be0a72828cfbe3299e04757b3))
19+
* **tests:** make test_get_platform less flaky ([#99](https://github.com/clear-street/studio-sdk-python/issues/99)) ([050518d](https://github.com/clear-street/studio-sdk-python/commit/050518d93ff9630513144f97b14b584e1ee7b3cf))
20+
21+
22+
### Chores
23+
24+
* **internal:** avoid pytest-asyncio deprecation warning ([#100](https://github.com/clear-street/studio-sdk-python/issues/100)) ([a66fba3](https://github.com/clear-street/studio-sdk-python/commit/a66fba3c87fa8d9aedcd09b1b02760c95ab19b14))
25+
* **internal:** bummp ruff dependency ([#105](https://github.com/clear-street/studio-sdk-python/issues/105)) ([dbc4dbe](https://github.com/clear-street/studio-sdk-python/commit/dbc4dbe30fdb70b118e9542206f4eb27a618b76d))
26+
* **internal:** bump httpx dependency ([#91](https://github.com/clear-street/studio-sdk-python/issues/91)) ([a836521](https://github.com/clear-street/studio-sdk-python/commit/a836521e7456b1b88bfcc88939a859219810c7e2))
27+
* **internal:** change default timeout to an int ([#104](https://github.com/clear-street/studio-sdk-python/issues/104)) ([ca6afef](https://github.com/clear-street/studio-sdk-python/commit/ca6afef849107703318baccefbe95b2ce24d0154))
28+
* **internal:** codegen related update ([#101](https://github.com/clear-street/studio-sdk-python/issues/101)) ([3b949f4](https://github.com/clear-street/studio-sdk-python/commit/3b949f4a066d84e59e09133174bde5663b1f27c6))
29+
* **internal:** codegen related update ([#88](https://github.com/clear-street/studio-sdk-python/issues/88)) ([dc24ced](https://github.com/clear-street/studio-sdk-python/commit/dc24ced22ec76d09b3ae9aa33abc91e432733572))
30+
* **internal:** codegen related update ([#90](https://github.com/clear-street/studio-sdk-python/issues/90)) ([28907db](https://github.com/clear-street/studio-sdk-python/commit/28907db57dd0a72601d01676fef5316620b12144))
31+
* **internal:** codegen related update ([#94](https://github.com/clear-street/studio-sdk-python/issues/94)) ([f5d8750](https://github.com/clear-street/studio-sdk-python/commit/f5d87505d08ffdacb49f6c71984c9c3a9b4e4585))
32+
* **internal:** codegen related update ([#97](https://github.com/clear-street/studio-sdk-python/issues/97)) ([4144402](https://github.com/clear-street/studio-sdk-python/commit/4144402d212358d70747707a04e21510569b104c))
33+
* **internal:** fix type traversing dictionary params ([#107](https://github.com/clear-street/studio-sdk-python/issues/107)) ([fd4d52f](https://github.com/clear-street/studio-sdk-python/commit/fd4d52f99e68933e8e5614acdbf654dfd86e3fbd))
34+
* **internal:** minor formatting changes ([#102](https://github.com/clear-street/studio-sdk-python/issues/102)) ([fab8f46](https://github.com/clear-street/studio-sdk-python/commit/fab8f46801884580af849f15d0429ff2a95fc17d))
35+
* **internal:** minor type handling changes ([#108](https://github.com/clear-street/studio-sdk-python/issues/108)) ([9f77dd3](https://github.com/clear-street/studio-sdk-python/commit/9f77dd37a1f892a83103cef46f8fb2d1e0de7450))
36+
37+
38+
### Documentation
39+
40+
* fix typos ([#93](https://github.com/clear-street/studio-sdk-python/issues/93)) ([f142e41](https://github.com/clear-street/studio-sdk-python/commit/f142e41861709d140f3cfccf1be2e459f27ba291))
41+
* **raw responses:** fix duplicate `the` ([#98](https://github.com/clear-street/studio-sdk-python/issues/98)) ([d6f1bdd](https://github.com/clear-street/studio-sdk-python/commit/d6f1bddd4c1b59386f6883c786f5771f63dd314d))
42+
343
## 0.1.0-alpha.17 (2024-12-19)
444

545
Full Changelog: [v0.1.0-alpha.16...v0.1.0-alpha.17](https://github.com/clear-street/studio-sdk-python/compare/v0.1.0-alpha.16...v0.1.0-alpha.17)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2024 Studio SDK
189+
Copyright 2025 Studio SDK
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ except studio_sdk.APIStatusError as e:
115115
print(e.response)
116116
```
117117

118-
Error codes are as followed:
118+
Error codes are as follows:
119119

120120
| Status Code | Error Type |
121121
| ----------- | -------------------------- |
@@ -254,8 +254,7 @@ If you need to access undocumented endpoints, params, or response properties, th
254254
#### Undocumented endpoints
255255

256256
To make requests to undocumented endpoints, you can make requests using `client.get`, `client.post`, and other
257-
http verbs. Options on the client will be respected (such as retries) will be respected when making this
258-
request.
257+
http verbs. Options on the client will be respected (such as retries) when making this request.
259258

260259
```py
261260
import httpx
@@ -327,7 +326,7 @@ with StudioSDK() as client:
327326
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
328327

329328
1. Changes that only affect static types, without breaking runtime behavior.
330-
2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals)_.
329+
2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
331330
3. Changes that we do not expect to impact the vast majority of users in practice.
332331

333332
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.

api.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,15 @@ Methods:
158158

159159
## PnlSummary
160160

161+
Types:
162+
163+
```python
164+
from studio_sdk.types.accounts import PnlSummaryRetrieveResponse
165+
```
166+
161167
Methods:
162168

163-
- <code title="get /accounts/{account_id}/pnl-summary">client.accounts.pnl_summary.<a href="./src/studio_sdk/resources/accounts/pnl_summary.py">retrieve</a>(account_id) -> <a href="./src/studio_sdk/types/pnl_summary.py">PnlSummary</a></code>
169+
- <code title="get /accounts/{account_id}/pnl-summary">client.accounts.pnl_summary.<a href="./src/studio_sdk/resources/accounts/pnl_summary.py">retrieve</a>(account_id) -> <a href="./src/studio_sdk/types/accounts/pnl_summary_retrieve_response.py">PnlSummaryRetrieveResponse</a></code>
164170

165171
## PnlDetails
166172

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ cache_fine_grained = True
4141
# ```
4242
# Changing this codegen to make mypy happy would increase complexity
4343
# and would not be worth it.
44-
disable_error_code = func-returns-value
44+
disable_error_code = func-returns-value,overload-cannot-match
4545

4646
# https://github.com/python/mypy/issues/12162
4747
[mypy.overrides]

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "clear-street-studio-sdk"
3-
version = "0.1.0-alpha.17"
3+
version = "0.1.0-alpha.18"
44
description = "The official Python library for the studio-sdk API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"
@@ -54,7 +54,7 @@ dev-dependencies = [
5454
"dirty-equals>=0.6.0",
5555
"importlib-metadata>=6.7.0",
5656
"rich>=13.7.1",
57-
"nest_asyncio==1.6.0"
57+
"nest_asyncio==1.6.0",
5858
]
5959

6060
[tool.rye.scripts]
@@ -129,6 +129,7 @@ testpaths = ["tests"]
129129
addopts = "--tb=short"
130130
xfail_strict = true
131131
asyncio_mode = "auto"
132+
asyncio_default_fixture_loop_scope = "session"
132133
filterwarnings = [
133134
"error"
134135
]
@@ -176,7 +177,7 @@ select = [
176177
"T201",
177178
"T203",
178179
# misuse of typing.TYPE_CHECKING
179-
"TCH004",
180+
"TC004",
180181
# import rules
181182
"TID251",
182183
]

requirements-dev.lock

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ h11==0.14.0
3535
# via httpcore
3636
httpcore==1.0.2
3737
# via httpx
38-
httpx==0.25.2
38+
httpx==0.28.1
3939
# via clear-street-studio-sdk
4040
# via respx
4141
idna==3.4
@@ -48,7 +48,7 @@ markdown-it-py==3.0.0
4848
# via rich
4949
mdurl==0.1.2
5050
# via markdown-it-py
51-
mypy==1.13.0
51+
mypy==1.14.1
5252
mypy-extensions==1.0.0
5353
# via mypy
5454
nest-asyncio==1.6.0
@@ -68,25 +68,24 @@ pydantic-core==2.27.1
6868
# via pydantic
6969
pygments==2.18.0
7070
# via rich
71-
pyright==1.1.390
71+
pyright==1.1.392.post0
7272
pytest==8.3.3
7373
# via pytest-asyncio
7474
pytest-asyncio==0.24.0
7575
python-dateutil==2.8.2
7676
# via time-machine
7777
pytz==2023.3.post1
7878
# via dirty-equals
79-
respx==0.20.2
79+
respx==0.22.0
8080
rich==13.7.1
81-
ruff==0.6.9
81+
ruff==0.9.4
8282
setuptools==68.2.2
8383
# via nodeenv
8484
six==1.16.0
8585
# via python-dateutil
8686
sniffio==1.3.0
8787
# via anyio
8888
# via clear-street-studio-sdk
89-
# via httpx
9089
time-machine==2.9.0
9190
tomli==2.0.2
9291
# via mypy

requirements.lock

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ h11==0.14.0
2525
# via httpcore
2626
httpcore==1.0.2
2727
# via httpx
28-
httpx==0.25.2
28+
httpx==0.28.1
2929
# via clear-street-studio-sdk
3030
idna==3.4
3131
# via anyio
@@ -37,7 +37,6 @@ pydantic-core==2.27.1
3737
sniffio==1.3.0
3838
# via anyio
3939
# via clear-street-studio-sdk
40-
# via httpx
4140
typing-extensions==4.12.2
4241
# via anyio
4342
# via clear-street-studio-sdk

0 commit comments

Comments
 (0)