Skip to content

Commit 93f5165

Browse files
axl1313stainless-sdks[bot]stainless-botstainless-app[bot]
authored
merge changes from stainless (#1)
* Initial commit * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): manual updates * feat(api): api update * feat(api): manual updates * chore: rebuild project due to codegen change * chore: rebuild project due to codegen change * feat(api): api update * chore: rebuild project due to codegen change * chore: rebuild project due to codegen change * codegen metadata * chore(internal): fix compat model_dump method when warnings are passed * docs: add info log level to readme * chore: remove now unused `cached-property` dep * chore(internal): exclude mypy from running on tests * fix(client): compat with new httpx 0.28.0 release * feat(api): api update * chore(internal): bump pyright * chore: make the `Omit` type public * feat(api): api update * feat(api): api update * chore(internal): bump pydantic dependency * docs(readme): fix http client proxies example * feat(api): api update * feat(api): api update * chore(internal): bump pyright * chore(internal): add support for TypeAliasType * feat(api): api update * chore(internal): codegen related update * chore(internal): codegen related update * chore(internal): codegen related update * docs(readme): example snippet for client context manager * chore(internal): fix some typos * codegen metadata * feat(api): api update * chore(internal): codegen related update * chore(internal): bump httpx dependency * fix(client): only call .close() when needed * docs: fix typos * chore(internal): codegen related update * chore(internal): codegen related update * feat(api): api update * chore(internal): codegen related update * chore(internal): codegen related update * feat(api): api update * chore(internal): codegen related update * chore(internal): minor formatting changes * chore: update test examples * chore(internal): change default timeout to an int * chore(internal): bummp ruff dependency * feat(api): api update * feat(api): api update * feat(client): send `X-Stainless-Read-Timeout` header * chore(internal): fix type traversing dictionary params * chore(internal): minor type handling changes * chore(internal): update client tests * fix: asyncify on non-asyncio runtimes * feat(client): allow passing `NotGiven` for body fix(client): mark some request bodies as optional * chore(internal): fix devcontainers setup * chore(internal): properly set __pydantic_private__ * docs: update URLs from stainlessapi.com to stainless.com More details at https://www.stainless.com/changelog/stainless-com * chore(docs): update client docstring * chore(internal): remove unused http client options forwarding * feat(api): api update * chore(internal): codegen related update * chore(internal): slight transform perf improvement * chore(internal): expand CI branch coverage * chore(internal): reduce CI branch coverage * fix(perf): skip traversing types for NotGiven values * fix(perf): optimize some hot paths * feat(api): api update --------- Co-authored-by: stainless-sdks-internal[bot] <167585319+stainless-sdks-internal[bot]@users.noreply.github.com> Co-authored-by: stainless-bot <[email protected]> Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent c456bb5 commit 93f5165

Some content is hidden

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

59 files changed

+661
-331
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
33

44
USER vscode
55

6-
RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.35.0" RYE_INSTALL_OPTION="--yes" bash
6+
RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.44.0" RYE_INSTALL_OPTION="--yes" bash
77
ENV PATH=/home/vscode/.rye/shims:$PATH
88

9-
RUN echo "[[ -d .venv ]] && source .venv/bin/activate" >> /home/vscode/.bashrc
9+
RUN echo "[[ -d .venv ]] && source .venv/bin/activate || export PATH=\$PATH" >> /home/vscode/.bashrc

.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
}
2525
}
2626
}
27+
},
28+
"features": {
29+
"ghcr.io/devcontainers/features/node:1": {}
2730
}
2831

2932
// Features to add to the dev container. More info: https://containers.dev/features.

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
lint:
1313
name: lint
1414
runs-on: ubuntu-latest
15-
16-
1715
steps:
1816
- uses: actions/checkout@v4
1917

@@ -22,18 +20,18 @@ jobs:
2220
curl -sSf https://rye.astral.sh/get | bash
2321
echo "$HOME/.rye/shims" >> $GITHUB_PATH
2422
env:
25-
RYE_VERSION: '0.35.0'
23+
RYE_VERSION: '0.44.0'
2624
RYE_INSTALL_OPTION: '--yes'
2725

2826
- name: Install dependencies
2927
run: rye sync --all-features
3028

3129
- name: Run lints
3230
run: ./scripts/lint
31+
3332
test:
3433
name: test
3534
runs-on: ubuntu-latest
36-
3735
steps:
3836
- uses: actions/checkout@v4
3937

@@ -42,12 +40,11 @@ jobs:
4240
curl -sSf https://rye.astral.sh/get | bash
4341
echo "$HOME/.rye/shims" >> $GITHUB_PATH
4442
env:
45-
RYE_VERSION: '0.35.0'
43+
RYE_VERSION: '0.44.0'
4644
RYE_INSTALL_OPTION: '--yes'
4745

4846
- name: Bootstrap
4947
run: ./scripts/bootstrap
5048

5149
- name: Run tests
5250
run: ./scripts/test
53-

.stats.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
configured_endpoints: 42
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cleanlab%2Fagility-60c8c820f2cbc6b5b0b129ccf707ec246921b9e93cfb18f4ed47a96cc97c47f8.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cleanlab%2Fagility-b890eea39144ced38d6196197401b71ac734bcd2343d046c04169bfab9d746f2.yml
3+
openapi_spec_hash: 50035b732d759a3bc9a00402b5ccf5c4
4+
config_hash: 6d2156cfe279456cf3c35ba5c66be1c1

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Reporting Security Issues
44

5-
This SDK is generated by [Stainless Software Inc](http://stainlessapi.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
5+
This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
66

7-
To report a security issue, please contact the Stainless team at security@stainlessapi.com.
7+
To report a security issue, please contact the Stainless team at security@stainless.com.
88

99
## Responsible Disclosure
1010

bin/publish-pypi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@
33
set -eux
44
mkdir -p dist
55
rye build --clean
6-
# Patching importlib-metadata version until upstream library version is updated
7-
# https://github.com/pypa/twine/issues/977#issuecomment-2189800841
8-
"$HOME/.rye/self/bin/python3" -m pip install 'importlib-metadata==7.2.1'
96
rye publish --yes --token=$PYPI_TOKEN

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: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Homepage = "https://github.com/stainless-sdks/agility-python"
3838
Repository = "https://github.com/stainless-sdks/agility-python"
3939

4040

41-
4241
[tool.rye]
4342
managed = true
4443
# version pins are in requirements-dev.lock
@@ -87,7 +86,7 @@ typecheck = { chain = [
8786
"typecheck:mypy" = "mypy ."
8887

8988
[build-system]
90-
requires = ["hatchling", "hatch-fancy-pypi-readme"]
89+
requires = ["hatchling==1.26.3", "hatch-fancy-pypi-readme"]
9190
build-backend = "hatchling.build"
9291

9392
[tool.hatch.build]
@@ -129,6 +128,7 @@ testpaths = ["tests"]
129128
addopts = "--tb=short"
130129
xfail_strict = true
131130
asyncio_mode = "auto"
131+
asyncio_default_fixture_loop_scope = "session"
132132
filterwarnings = [
133133
"error"
134134
]
@@ -151,7 +151,6 @@ reportImplicitOverride = true
151151
reportImportCycles = false
152152
reportPrivateUsage = false
153153

154-
155154
[tool.ruff]
156155
line-length = 120
157156
output-format = "grouped"
@@ -176,7 +175,7 @@ select = [
176175
"T201",
177176
"T203",
178177
# misuse of typing.TYPE_CHECKING
179-
"TCH004",
178+
"TC004",
180179
# import rules
181180
"TID251",
182181
]

requirements-dev.lock

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# all-features: true
88
# with-sources: false
99
# generate-hashes: false
10+
# universal: false
1011

1112
-e file:.
1213
annotated-types==0.6.0
@@ -48,7 +49,7 @@ markdown-it-py==3.0.0
4849
# via rich
4950
mdurl==0.1.2
5051
# via markdown-it-py
51-
mypy==1.13.0
52+
mypy==1.14.1
5253
mypy-extensions==1.0.0
5354
# via mypy
5455
nest-asyncio==1.6.0
@@ -68,7 +69,7 @@ pydantic-core==2.27.1
6869
# via pydantic
6970
pygments==2.18.0
7071
# via rich
71-
pyright==1.1.390
72+
pyright==1.1.392.post0
7273
pytest==8.3.3
7374
# via pytest-asyncio
7475
pytest-asyncio==0.24.0
@@ -78,7 +79,7 @@ pytz==2023.3.post1
7879
# via dirty-equals
7980
respx==0.22.0
8081
rich==13.7.1
81-
ruff==0.6.9
82+
ruff==0.9.4
8283
setuptools==68.2.2
8384
# via nodeenv
8485
six==1.16.0

requirements.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# all-features: true
88
# with-sources: false
99
# generate-hashes: false
10+
# universal: false
1011

1112
-e file:.
1213
annotated-types==0.6.0

0 commit comments

Comments
 (0)