From 9b399a0a5c0959d1cffa8a1d67aa4cf0051d1f06 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Nov 2026 07:14:07 +0000 Subject: [PATCH 1/3] chore(deps): bump the python-maintenance group across 1 directory with 6 updates Bumps the python-maintenance group with 6 updates in the / directory: | Package | From | To | | --- | --- | --- | | [anyio](https://github.com/agronholm/anyio) | `4.15.1` | `4.16.0` | | [botocore](https://github.com/boto/botocore) | `1.43.123` | `1.43.127` | | [ty](https://github.com/astral-sh/ty) | `0.0.95` | `0.0.100` | | [ruff](https://github.com/astral-sh/ruff) | `0.17.3` | `0.17.4` | | [inline-snapshot](https://github.com/15r10nk/inline-snapshot) | `0.36.1` | `0.36.2` | | [playwright](https://github.com/microsoft/playwright-python) | `1.64.1` | `1.65.0` | Updates `anyio` from 4.15.1 to 4.16.0 - [Release notes](https://github.com/agronholm/anyio/releases) - [Commits](https://github.com/agronholm/anyio/compare/4.15.1...4.16.0) Updates `botocore` from 1.43.123 to 1.43.127 - [Commits](https://github.com/boto/botocore/compare/1.43.123...1.43.127) Updates `ty` from 0.0.95 to 0.0.100 - [Release notes](https://github.com/astral-sh/ty/releases) - [Changelog](https://github.com/astral-sh/ty/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ty/compare/0.0.95...0.0.100) Updates `ruff` from 0.17.3 to 0.17.4 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.17.3...0.17.4) Updates `inline-snapshot` from 0.36.1 to 0.36.2 - [Release notes](https://github.com/15r10nk/inline-snapshot/releases) - [Changelog](https://github.com/15r10nk/inline-snapshot/blob/main/CHANGELOG.md) - [Commits](https://github.com/15r10nk/inline-snapshot/compare/v0.36.1...v0.36.2) Updates `playwright` from 1.64.1 to 1.65.0 - [Release notes](https://github.com/microsoft/playwright-python/releases) - [Commits](https://github.com/microsoft/playwright-python/compare/v1.64.1...v1.65.0) --- updated-dependencies: - dependency-name: anyio dependency-version: 4.16.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-maintenance - dependency-name: botocore dependency-version: 1.43.127 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: python-maintenance - dependency-name: ty dependency-version: 0.0.100 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: python-maintenance - dependency-name: ruff dependency-version: 0.17.4 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: python-maintenance - dependency-name: inline-snapshot dependency-version: 0.36.2 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: python-maintenance - dependency-name: playwright dependency-version: 1.65.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: python-maintenance ... Signed-off-by: dependabot[bot] --- pyproject.toml | 10 ++-- uv.lock | 144 +++++++++++++++++++++++-------------------------- 2 files changed, 71 insertions(+), 83 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cd7acd6af0..0d147bd409 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,14 +49,14 @@ realtime = ["websockets >= 13, < 16"] datalib = ["numpy >= 1", "pandas >= 1.2.3"] voice_helpers = ["sounddevice>=0.5.1", "numpy>=2.0.2"] bedrock = [ - "botocore>=1.40.0,<2", + "botocore<2,>=1.40.0", "urllib3>=2.7.0,<3", ] vertex = ["google-auth[requests]>=2.36,<3"] [dependency-groups] dev = [ - "ty==0.0.95", + "ty==0.0.100", "pytest>=9.0.3", "pytest-asyncio>=1.4.0", "Pillow==12.3.0", @@ -64,7 +64,7 @@ dev = [ "rich>=13.7.1", "inline-snapshot>=0.28.0", "azure-identity >=1.14.1", - "botocore==1.43.123", + "botocore==1.43.127", "pandas-stubs >= 1.1.0.11", "trio >=0.22.2", "pytest-xdist>=3.6.1", @@ -74,8 +74,8 @@ dev = [ pydantic-v1 = ["pydantic>=1.10.26,<2"] pydantic-v2 = ["pydantic>=2,<3"] provider-computer = ["Pillow==12.3.0"] -provider-browser = ["playwright==1.64.1"] -browser-demo = ["playwright==1.64.1"] +provider-browser = ["playwright==1.65.0"] +browser-demo = ["playwright==1.65.0"] # Isolated build requirements are exported with hashes by scripts/build. build = [ "hatchling==1.33.0", diff --git a/uv.lock b/uv.lock index 161fb7c1bc..70b6cfc1e3 100644 --- a/uv.lock +++ b/uv.lock @@ -258,16 +258,16 @@ wheels = [ [[package]] name = "anyio" -version = "4.15.1" +version = "4.16.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, { name = "idna" }, { name = "typing-extensions", marker = "python_full_version < '3.15'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/a9/d2/f4d173e22df740bc37b1db102b386ba719b66e95b0f0d751f556b387e6d2/anyio-4.15.1.tar.gz", hash = "sha256:9f28306018cbd6d329e64a36d58256edff76dd996fe423bc957326e578b82a94", size = 276966, upload-time = "2026-09-05T10:42:39.44Z" } +sdist = { url = "https://files.pythonhosted.org/packages/a1/98/7e457a3b014976887a050561955c0b76e1e7e2d6e27b78ecef2ef80518f2/anyio-4.16.0.tar.gz", hash = "sha256:59bb03251907983d1603d27c3087ddb1e93299ea2163adcdba37899a4fb12ffb", size = 310971, upload-time = "2026-11-01T11:20:07.282Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/12/b8/4bd346e22b28902df4d651910f5242c28d84e4a5c2435ca5c3f797ed7e2e/anyio-4.15.1-py3-none-any.whl", hash = "sha256:6152fdbbf9a77fdec97731721bebf7c4c44f7c29b424b0065826173efc7ed101", size = 132079, upload-time = "2026-09-05T10:42:37.923Z" }, + { url = "https://files.pythonhosted.org/packages/a9/16/7757fb84c819accc7d7e9af5291b261e4abb8627ee040f99e7d35ef2457a/anyio-4.16.0-py3-none-any.whl", hash = "sha256:c66ae634e0b8228396b801741beb3294326d4b6102f7bba4041c0dfb58c29026", size = 134521, upload-time = "2026-11-01T11:20:05.59Z" }, ] [[package]] @@ -337,16 +337,16 @@ wheels = [ [[package]] name = "botocore" -version = "1.43.123" +version = "1.43.127" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "jmespath" }, { name = "python-dateutil" }, { name = "urllib3" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e0/de/011fc2a47fb066c47064b122498d2fd21f55bc90ea514acbddc37ca0f8c1/botocore-1.43.123.tar.gz", hash = "sha256:80948cb9b1cdf1a1a25809089a42e3a1bc4af0258d198222db6e97dcc660dd0c", size = 16486269, upload-time = "2026-10-30T19:18:44.609Z" } +sdist = { url = "https://files.pythonhosted.org/packages/8f/45/b4e606b0f66c11c6bd44e91381aa562c6b4dacf478b97b461a429036a89a/botocore-1.43.127.tar.gz", hash = "sha256:93bae360fb3a6f1b8e36593faa8bbbfa05b19866f7a37e9606a98f13394156f8", size = 16559749, upload-time = "2026-11-09T20:52:12.475Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/db/96/4f2dffd304425c07160ab2c12cb13322d852fd956fe9d4386228c93f02ea/botocore-1.43.123-py3-none-any.whl", hash = "sha256:e30580f9c1282c321529238ff8ff75066096a2adbd0a293c8ae592c21d1733a3", size = 16185987, upload-time = "2026-10-30T19:18:39.794Z" }, + { url = "https://files.pythonhosted.org/packages/4b/db/bee0401fd3f8cf1e2404044a4e3156dc7e064c2b1fc7162df2d795941cd8/botocore-1.43.127-py3-none-any.whl", hash = "sha256:aa0e3188679a2164a2098a14ea9b59520520cb573aaee9999d852480691e134a", size = 16257630, upload-time = "2026-11-09T20:52:09.488Z" }, ] [[package]] @@ -970,7 +970,7 @@ wheels = [ [[package]] name = "inline-snapshot" -version = "0.36.1" +version = "0.36.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "asttokens" }, @@ -980,9 +980,9 @@ dependencies = [ { name = "tomli", marker = "python_full_version < '3.11'" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/0e/80/13c7576e62fd189e9ff86a18e32a9bfcc04189baee617eef5f647df44a0f/inline_snapshot-0.36.1.tar.gz", hash = "sha256:ff57828c691eaafe03426de25f2c21a1e382905dcbe110934df862297e8c5f8a", size = 2563979, upload-time = "2026-10-12T06:54:49.294Z" } +sdist = { url = "https://files.pythonhosted.org/packages/3a/de/eb3d06a644732d3a6e390a249780be132d535d5c850a1598681e48d8b8a3/inline_snapshot-0.36.2.tar.gz", hash = "sha256:fb30d99a915a768d1c46ab5b7576b7ee2a8d60eb31063a14ada305c05bb5ffc8", size = 2570804, upload-time = "2026-11-09T06:55:41.617Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/18/da/762ca1a2067ca3401243e8737815e98df5c38c8b1fea20c7f310054f3416/inline_snapshot-0.36.1-py3-none-any.whl", hash = "sha256:9d795198efcf956670a8ed588c85708dd3575a08341c63e2b34745a2ba0c6245", size = 98532, upload-time = "2026-10-12T06:54:47.275Z" }, + { url = "https://files.pythonhosted.org/packages/b4/c3/acde9e9d26ec0b529ae77543a1e8fa1816ff601618a34a27c35cd7c81b1b/inline_snapshot-0.36.2-py3-none-any.whl", hash = "sha256:2c7980bee5149ecfffae3fea2e6670e56d0cd94fa975e7bd8517c4c984ce6e5c", size = 101459, upload-time = "2026-11-09T06:55:40.165Z" }, ] [[package]] @@ -1508,7 +1508,7 @@ wheels = [ [[package]] name = "openai" -version = "3.55.0" # x-release-please-version +version = "3.55.0" source = { editable = "." } default-groups = ["dev", "pydantic-v2"] dependencies = [ @@ -1612,7 +1612,7 @@ requires-dist = [ provides-extras = ["aiohttp", "realtime", "datalib", "voice-helpers", "bedrock", "vertex"] [package.metadata.requires-dev] -browser-demo = [{ name = "playwright", specifier = "==1.64.1" }] +browser-demo = [{ name = "playwright", specifier = "==1.65.0" }] build = [ { name = "hatchling", specifier = "==1.33.0" }, { name = "packaging", specifier = "==26.3" }, @@ -1623,7 +1623,7 @@ build = [ ] dev = [ { name = "azure-identity", specifier = ">=1.14.1" }, - { name = "botocore", specifier = "==1.43.123" }, + { name = "botocore", specifier = "==1.43.127" }, { name = "griffe", specifier = ">=1" }, { name = "inline-snapshot", specifier = ">=0.28.0" }, { name = "pandas-stubs", specifier = ">=1.1.0.11" }, @@ -1634,10 +1634,10 @@ dev = [ { name = "rich", specifier = ">=13.7.1" }, { name = "ruff" }, { name = "trio", specifier = ">=0.22.2" }, - { name = "ty", specifier = "==0.0.95" }, + { name = "ty", specifier = "==0.0.100" }, { name = "types-requests", specifier = ">=2.33.0.20261006" }, ] -provider-browser = [{ name = "playwright", specifier = "==1.64.1" }] +provider-browser = [{ name = "playwright", specifier = "==1.65.0" }] provider-computer = [{ name = "pillow", specifier = "==12.3.0" }] pydantic-v1 = [{ name = "pydantic", specifier = ">=1.10.26,<2" }] pydantic-v2 = [{ name = "pydantic", specifier = ">=2,<3" }] @@ -1844,21 +1844,21 @@ wheels = [ [[package]] name = "playwright" -version = "1.64.1" +version = "1.65.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "greenlet" }, - { name = "pyee" }, ] +sdist = { url = "https://files.pythonhosted.org/packages/ab/26/bfd17cb22beaab2c41ae68b245338ca25b83bffd809fa8d4117d648002d6/playwright-1.65.0.tar.gz", hash = "sha256:81f6a4c56e25d2e0f66232c3548649b17697ee3211e222aae78d4ecafad51918", size = 10224005, upload-time = "2026-11-09T21:10:01.425Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/8d/c8/cc677856d89a0c077673b40ab915ed5597bf1347b205cabe70121c431ca9/playwright-1.64.1-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:29453ff76e25c17d0b45658cacd6b92e9eec46e8db21e134fb3b7143df50f013", size = 44508971, upload-time = "2026-10-22T16:29:58.12Z" }, - { url = "https://files.pythonhosted.org/packages/72/4f/572bbbe60a5787ca61a84bad934c3ce19c08c2bc9c0e9781bf0d99cad1a6/playwright-1.64.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:59f7b041284ce8d1b72098ae50ca48a2d83692eec25154ab5ba79d4b6b4fe8a9", size = 43155232, upload-time = "2026-10-22T16:30:02.415Z" }, - { url = "https://files.pythonhosted.org/packages/44/fa/468f313a56d33a6420705147c8d47bef558f087856edf38c5b13eef8aa6c/playwright-1.64.1-py3-none-macosx_11_0_universal2.whl", hash = "sha256:6a6f99adad1ae40e6ee62efe89785db861ce7ddd57651521cb31894183cc4ae3", size = 44508977, upload-time = "2026-10-22T16:30:07.632Z" }, - { url = "https://files.pythonhosted.org/packages/15/b9/e481a34572933b5cf179d5637c98da488c732ee339dff5b73a0624d2e42b/playwright-1.64.1-py3-none-manylinux1_x86_64.whl", hash = "sha256:577b8d88778c245cfbd145ae17cf53044f084b1b46c55c69081d4069d56057e2", size = 48471931, upload-time = "2026-10-22T16:30:12.831Z" }, - { url = "https://files.pythonhosted.org/packages/0c/11/545f25e47ec54e1e8a2892ef9994fc2b298f909ab37b88578e3a1f87ac2e/playwright-1.64.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a29fda44725e11b0b625c4bff6458a1f6dbee97b88c9788d12e18a8344458c2d", size = 48150994, upload-time = "2026-10-22T16:30:18.297Z" }, - { url = "https://files.pythonhosted.org/packages/33/87/8ff7af99387ee72ae9b46a66ece7a0c0aa63f73320ecf6dd3dd087fa840a/playwright-1.64.1-py3-none-win32.whl", hash = "sha256:d3c48b31da426c2f3562d0919cb9ea4e5415f6dbd29d7211fa4d66cca24fbd2f", size = 38801828, upload-time = "2026-10-22T16:30:23.154Z" }, - { url = "https://files.pythonhosted.org/packages/96/0a/64db6851aa1852a4f76be28eea71d4e2bf9f3ce493ee2e66939426729046/playwright-1.64.1-py3-none-win_amd64.whl", hash = "sha256:5e240a79464434c9260957b9ef59a5808e02e96e3fcabdc717fd7485260b9730", size = 38801836, upload-time = "2026-10-22T16:30:28.092Z" }, - { url = "https://files.pythonhosted.org/packages/c5/4b/d7ddde9467a5fcfe6a0d3c954732332e98a4f4a9025fd42c8d091c16e5f9/playwright-1.64.1-py3-none-win_arm64.whl", hash = "sha256:983ccd085453ea5a7588193657fc349a6ffbf7bf7ba663fd58dc81e4aa3af9d9", size = 34693875, upload-time = "2026-10-22T16:30:32.724Z" }, + { url = "https://files.pythonhosted.org/packages/a9/8c/e98c8ac52e9187bff759893a4009bf468dbd56255dc34ad8f53c8e77f10c/playwright-1.65.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:78d2bd6127463552ddd890516e5eb4cc805559af474aa5ccf5b62e907972ce16", size = 50319011, upload-time = "2026-11-09T21:09:30.436Z" }, + { url = "https://files.pythonhosted.org/packages/c4/5d/213c3f278d4f3b110d61b4082222c52b9f7187d3f4ca3dde2d217e0d752f/playwright-1.65.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:229d6b184de3da7bf292cc38a63ee82aefb5c9f0a4233b1142f3ffb1cbd410ec", size = 48808710, upload-time = "2026-11-09T21:09:34.587Z" }, + { url = "https://files.pythonhosted.org/packages/73/76/ed4f88c6cc56a31b21c9820df74b65d1fef8f0500b8bc85c5f994a3b9d36/playwright-1.65.0-py3-none-macosx_11_0_universal2.whl", hash = "sha256:17e8e46065aa1a2e2aa3c3efde37788fecd0e5e645c7020780ebe684305118ca", size = 50319014, upload-time = "2026-11-09T21:09:38.488Z" }, + { url = "https://files.pythonhosted.org/packages/a9/5c/fddffe92237452d23b19c4703ca8a2ddffc3da9eaf4424b0f019dd5608f3/playwright-1.65.0-py3-none-manylinux1_x86_64.whl", hash = "sha256:e8e4d4a177bef2c2f2a17019febadded1c84cd1499b80f7100bb30ff20df7bad", size = 53470748, upload-time = "2026-11-09T21:09:42.382Z" }, + { url = "https://files.pythonhosted.org/packages/c0/ff/952586cd6d9ec43739d66fa6bfebfd92656ab03e97bc54659b23c23ad069/playwright-1.65.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9072e6394fec07e56e17fec0ca271a7847dda4716db9d716291d1f7344f199bb", size = 53142506, upload-time = "2026-11-09T21:09:46.401Z" }, + { url = "https://files.pythonhosted.org/packages/fe/21/af53bd727a8dfb7289c9f5c9477f84aa3dd8d9e7786ed68b65c9e2625ec3/playwright-1.65.0-py3-none-win32.whl", hash = "sha256:d9efef7b809020325d3d1bb34eb05c93865199274319249c9f6a77cd17fd8573", size = 42664070, upload-time = "2026-11-09T21:09:50.532Z" }, + { url = "https://files.pythonhosted.org/packages/8c/0d/32e96514b48fabd16ece31bae11afba5e18cf425123fb7c36c6b8bd8db8f/playwright-1.65.0-py3-none-win_amd64.whl", hash = "sha256:ab22611318e8747477c949c81b055ee6e224ecedf66c2a794209c7fd0210a743", size = 42664080, upload-time = "2026-11-09T21:09:54.425Z" }, + { url = "https://files.pythonhosted.org/packages/ac/d6/2a75d6eeda7b23e1b241ef898ed53bc3ea134ff52d2c959c770dce843e3c/playwright-1.65.0-py3-none-win_arm64.whl", hash = "sha256:67f0b1a80d0d2d4349f67c1ccfeceaa067f1d85aaac32d4d81dd3e971a96ddbb", size = 38367903, upload-time = "2026-11-09T21:09:58.28Z" }, ] [[package]] @@ -2228,18 +2228,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/36/c7/cfc8e811f061c841d7990b0201912c3556bfeb99cdcb7ed24adc8d6f8704/pydantic_core-2.41.5-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:56121965f7a4dc965bff783d70b907ddf3d57f6eba29b6d2e5dabfaf07799c51", size = 2145302, upload-time = "2025-11-04T13:43:46.64Z" }, ] -[[package]] -name = "pyee" -version = "13.0.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "typing-extensions" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/8b/04/e7c1fe4dc78a6fdbfd6c337b1c3732ff543b8a397683ab38378447baa331/pyee-13.0.1.tar.gz", hash = "sha256:0b931f7c14535667ed4c7e0d531716368715e860b988770fc7eb8578d1f67fc8", size = 31655, upload-time = "2026-02-14T21:12:28.044Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/a0/c4/b4d4827c93ef43c01f599ef31453ccc1c132b353284fc6c87d535c233129/pyee-13.0.1-py3-none-any.whl", hash = "sha256:af2f8fede4171ef667dfded53f96e2ed0d6e6bd7ee3bb46437f77e3b57689228", size = 15659, upload-time = "2026-02-14T21:12:26.263Z" }, -] - [[package]] name = "pygments" version = "2.20.0" @@ -2362,27 +2350,27 @@ wheels = [ [[package]] name = "ruff" -version = "0.17.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/59/73/81f140c4edd9cc323de5478e6bbd3bbcfae9a82692df1a258de8cec6a6d2/ruff-0.17.3.tar.gz", hash = "sha256:a57049c8addb3662073859bb55a7ad35aa54f8a7c9ed268911d1333c5aadaaa9", size = 5339444, upload-time = "2026-10-27T00:34:05.914Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/9e/8c/083365310c4e79c842f25bf5a842facbd9b0c0ec336f96dffa5074fe723d/ruff-0.17.3-py3-none-linux_armv6l.whl", hash = "sha256:ab86b84cd9d05e56d329742c0cabdcbe2d1d56c98f4a04aab9b5b66196febfb4", size = 10216522, upload-time = "2026-10-27T00:33:29.822Z" }, - { url = "https://files.pythonhosted.org/packages/72/26/4b2edf31cfebe9605d8f6ed8f1d6f376d3a53d4c9a123e62661c64c440f0/ruff-0.17.3-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:e407b4a6852853a9a2cdce96963e94ad9775578bb44e7561a0f2829f3cc04b11", size = 10217786, upload-time = "2026-10-27T00:33:33.949Z" }, - { url = "https://files.pythonhosted.org/packages/a2/7e/537aba4b7f54397a374d2f6a6fc93e9c8015e18553f31a4a7b7dbced48b5/ruff-0.17.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:b75cc113b3aca388933d8296b667b1ac401a80317ea3074c9b0a66541199da29", size = 9440362, upload-time = "2026-10-27T00:33:35.784Z" }, - { url = "https://files.pythonhosted.org/packages/3d/66/283e39734f66c8a5ebaa93c22eb7b7515779a0b1d5a5c0ad20e05c0edb41/ruff-0.17.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ab5fa7ed5ce18554ea69d850ad162cbaa0c85fc47c08d83a569f806681c9a6ad", size = 10094281, upload-time = "2026-10-27T00:33:38.216Z" }, - { url = "https://files.pythonhosted.org/packages/21/4c/1ffc768497bd025a32c72152771e40c0b99bddc5cc6e4f50c7949a395346/ruff-0.17.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c673c170e27834d1262e3a9c1e97bdc9b9c3b180c63d89173ce69747232474c1", size = 10022543, upload-time = "2026-10-27T00:33:40.181Z" }, - { url = "https://files.pythonhosted.org/packages/73/c3/f90db547301080fcb82c92abf914c8bd57b89911d9b65a6c4cc6b52d0635/ruff-0.17.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6a754c0341bc9ca151b7b335988b3263921c08859f84ca219b70cee825571b6f", size = 10683921, upload-time = "2026-10-27T00:33:42.182Z" }, - { url = "https://files.pythonhosted.org/packages/e5/98/92d4a8a26c6c96cf1a5b34dd59036d8a71e52d650aab065c58867e964e63/ruff-0.17.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4590b9d86c0b1543ebb09094254e191cd43fe8edaf330baa035aab03da251532", size = 11373408, upload-time = "2026-10-27T00:33:44.19Z" }, - { url = "https://files.pythonhosted.org/packages/43/02/1f24d2e3064c9753926deeb901afa57777b37ee46799b09ddd7aee6e5145/ruff-0.17.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bbde18beccd98c29a227c63c99022e3443b99258e08326df6425dfe0443705ef", size = 10977469, upload-time = "2026-10-27T00:33:46.179Z" }, - { url = "https://files.pythonhosted.org/packages/f0/20/fecedea2209f574ab92033b344e01a7f0c2dc76c6d6d19a14c9f8141173f/ruff-0.17.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7fa4b0f931cdbcb8a52044f370a3eb429fb42eb88807b0e800fcaa98dd42b24e", size = 10577491, upload-time = "2026-10-27T00:33:48.233Z" }, - { url = "https://files.pythonhosted.org/packages/33/36/b93fdf0bc6f84f0cd487aadfb0354deb40013669ea35ac3d26855de1e959/ruff-0.17.3-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:39405f341deec934b4289634324ad695f72df2970f9121582872eaf5b722f0f5", size = 10608748, upload-time = "2026-10-27T00:33:50.284Z" }, - { url = "https://files.pythonhosted.org/packages/5d/b7/7d3f5f14145daead1efb0b9a8289ed1daa100f419d60774375951723ce00/ruff-0.17.3-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:68074094f55ca3d29ab19491f640282f7a84061c4c7977aa5094b968ca457e9a", size = 10075057, upload-time = "2026-10-27T00:33:52.074Z" }, - { url = "https://files.pythonhosted.org/packages/b0/ed/93ff7a5909ee56e2bd4b982deae9e0efb2724417874a90c9e41ad66c6dd7/ruff-0.17.3-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:27bb571ac78fef178fe5118d2827df95c2aae74a48fff2b15f6acd03af5ff5bb", size = 10022431, upload-time = "2026-10-27T00:33:54.061Z" }, - { url = "https://files.pythonhosted.org/packages/9b/07/a83b9eeec8c1c3c0e4eda15f06c3a91001bfd2687ea2f07b750719bf9712/ruff-0.17.3-py3-none-musllinux_1_2_i686.whl", hash = "sha256:029c37cbd3de48ca37aa12117bead2d065f15da17d66bf84e0d4274013705db2", size = 10394903, upload-time = "2026-10-27T00:33:56.158Z" }, - { url = "https://files.pythonhosted.org/packages/af/b2/05c39857c2526fcbebe46ad93a8dc97424656dfef14d3ef933abe1ffd331/ruff-0.17.3-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:692fdb46d0fd9c71e380947dc5fc72f2c3f881073bc1f739e4579376231affbe", size = 10799780, upload-time = "2026-10-27T00:33:58.204Z" }, - { url = "https://files.pythonhosted.org/packages/ec/d9/47171a16739eb7a353936b31c20cf54340531e68c9af7d72fd7a784e235d/ruff-0.17.3-py3-none-win32.whl", hash = "sha256:46539cb031b01fd29ae0a02142483c46640b233ee12bb1c1b690bffa1555d5ca", size = 9908481, upload-time = "2026-10-27T00:34:00.087Z" }, - { url = "https://files.pythonhosted.org/packages/d0/a0/f08c1631bfd81faa6a90eaf70c37c786c11bed2046302b56bb506c25e1a0/ruff-0.17.3-py3-none-win_amd64.whl", hash = "sha256:56b8ffb3f3b3cbccb8b76b71b38261b7ed982ef5d20f5b447b1b61a7f4949b24", size = 10341333, upload-time = "2026-10-27T00:34:02.099Z" }, - { url = "https://files.pythonhosted.org/packages/99/d5/4ad4ed31413c301430918e70d3d38ae6f097af0766cb9ab8c9d502b2a4d6/ruff-0.17.3-py3-none-win_arm64.whl", hash = "sha256:81fce74bcd6be0e9da7c67c7553fd0f1f12964a2052cd728ef917b937a5ca1d9", size = 9854332, upload-time = "2026-10-27T00:34:03.847Z" }, +version = "0.17.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/84/0e/3d154514b5bad104f7e1c13169c2d09aa9959fccdc06eb47610ccdfa83ed/ruff-0.17.4.tar.gz", hash = "sha256:f32d178b50e826e00f6c6c1be3f56333068acb9b67fe167143527fa9b81e890d", size = 5357750, upload-time = "2026-11-05T18:52:17.638Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e0/61/c83c78bbb6108f6c6270a106cf12b54175f4f42da088b9bb880f18e31289/ruff-0.17.4-py3-none-linux_armv6l.whl", hash = "sha256:2b08c4ff98dc234f4a3871a3105353b922fa875ea1073ca31001eb8c06bb4d89", size = 10252195, upload-time = "2026-11-05T18:51:36.594Z" }, + { url = "https://files.pythonhosted.org/packages/0a/12/dd158708378866e8b53e145a465dbc51a7cccb9fa197a74d67eaedde7234/ruff-0.17.4-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:13e781c3c5f663e7fba737eaaeb70dd943dd55171daf316afb25cd5268cfe0c7", size = 10266044, upload-time = "2026-11-05T18:51:39.502Z" }, + { url = "https://files.pythonhosted.org/packages/28/32/89a94a8eb11fd505a381ae6f04e190d038d9958695209dc1786ce5cfcda3/ruff-0.17.4-py3-none-macosx_11_0_arm64.whl", hash = "sha256:7ed2f416349944f908f9574215994602242b0836844eba48eec61473033afca0", size = 9432227, upload-time = "2026-11-05T18:51:41.968Z" }, + { url = "https://files.pythonhosted.org/packages/58/de/a392dc38b215798ae72e639d228b7f6c02d826a95d1c0ad7c4c0ee49ef5b/ruff-0.17.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8ea6e0017c785f7282092b11e46338e4ebed1b9e575ebf2e55a8a1eda968241a", size = 10136900, upload-time = "2026-11-05T18:51:44.562Z" }, + { url = "https://files.pythonhosted.org/packages/b7/8f/a880f60f42005f6ffdf58f77af34c7ee327000b5607f48a2f6a69d8b242c/ruff-0.17.4-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:7e061dcc0933c7031a616ac8d66ac540309b2aa21ab558101a8f53e9ac7a1185", size = 10051245, upload-time = "2026-11-05T18:51:46.7Z" }, + { url = "https://files.pythonhosted.org/packages/09/55/98844264108af7d5ec27ca3a9cd5a989094ca657a14599c4b69a537a0e9a/ruff-0.17.4-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f99e95a1515161138be3cbd1b06c06e739d8feb38ade35564556999fffc3686e", size = 10704341, upload-time = "2026-11-05T18:51:49.228Z" }, + { url = "https://files.pythonhosted.org/packages/28/a2/5edf97659c3ac7c73f978003bd314936f671037fdac6b978e9de3e4b2b65/ruff-0.17.4-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5f28cf0dd37cb172fa5a8d2e92e6ada3a9dbd0609f094ed24039929eef0b7524", size = 11394465, upload-time = "2026-11-05T18:51:51.534Z" }, + { url = "https://files.pythonhosted.org/packages/f2/8f/51371ae856b2bef4d15a044a574695fbc0f6ae63aafa42a2a22428070fb6/ruff-0.17.4-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6b21c771b296888e8a35c6f48555f4b44e4483f61675d6ed51810a5203469ce6", size = 10988262, upload-time = "2026-11-05T18:51:53.91Z" }, + { url = "https://files.pythonhosted.org/packages/af/1b/62874f14c7873f27c7887d2b1ea41de990e14ba9518801ffe8eacb5d51a6/ruff-0.17.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2cd025509b2e15721b426fc70fd946d71f43b3db3b08e946dfec2d696d911690", size = 10572829, upload-time = "2026-11-05T18:51:56.129Z" }, + { url = "https://files.pythonhosted.org/packages/98/30/860b9dae67432b16b88558a9cb2d3194825fa62838f8b9cc49f5d9022095/ruff-0.17.4-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:49b77f7b3921669466882a4881168801bdb06ec2cd83fb936049016cf5fdece1", size = 10617545, upload-time = "2026-11-05T18:51:58.172Z" }, + { url = "https://files.pythonhosted.org/packages/0f/08/781a4b41a1c83fd6e30fea610d6502a6f94e49cf94693fd37bdcbc6bfe11/ruff-0.17.4-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:e3b84eb74f260d1c2dbd236fd9d4c011d4fdd0a52bdf8aea57a10e3a1b71fca5", size = 10111955, upload-time = "2026-11-05T18:52:00.59Z" }, + { url = "https://files.pythonhosted.org/packages/3c/e9/94b1c7b677120f30839254518924f73a8157e9bcfa200edcd5796fecdb99/ruff-0.17.4-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:20e43d7a08e712e33067ba887e6574546c79bd4831596ce8f16803ac7ff9ad90", size = 10058355, upload-time = "2026-11-05T18:52:03.61Z" }, + { url = "https://files.pythonhosted.org/packages/27/5f/a825910b9f309336dc33cb8c0774126662c1d2f765699b3e0a1bd538d01f/ruff-0.17.4-py3-none-musllinux_1_2_i686.whl", hash = "sha256:0d1f4848fd2ec0499be4046db9b7dfcc952666885f00233cc7033515282556a8", size = 10415932, upload-time = "2026-11-05T18:52:06.264Z" }, + { url = "https://files.pythonhosted.org/packages/8b/b8/0796468423413ea4df1a6e2442ae26cf49b8f7dda0eecf246e0d5d0dde54/ruff-0.17.4-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:6007e7f3a0e55b0fbdb947af69cf24c21b4928df6be8ef3e767c69b5ccccf496", size = 10826033, upload-time = "2026-11-05T18:52:08.675Z" }, + { url = "https://files.pythonhosted.org/packages/b9/ab/d8e407669ffe5014429baf780c2df47e001968a6e4c17f615e2e7b13a9ba/ruff-0.17.4-py3-none-win32.whl", hash = "sha256:3971a78cba76298b284c8321e6d40d93045ed348bec5c369d85099efc97fb7cf", size = 9931993, upload-time = "2026-11-05T18:52:11.169Z" }, + { url = "https://files.pythonhosted.org/packages/bd/15/42af8a72d8946e3c9efd2bbf6641e462b6832783b0d043d63ef5b280ba7f/ruff-0.17.4-py3-none-win_amd64.whl", hash = "sha256:67c5a894fc054cf41f75f7afa24815de5a74329d97634126c2a1015740ff4e8c", size = 10292922, upload-time = "2026-11-05T18:52:13.436Z" }, + { url = "https://files.pythonhosted.org/packages/68/9e/f1dbffcfb8ff25dadbc21f87a8b73c3848abe4abada9d4b08ccef8bec40c/ruff-0.17.4-py3-none-win_arm64.whl", hash = "sha256:181ae38a9a8fb94925bf7d0794327b48d7fd7f4b50cfd84c0e999cc09ef8d131", size = 9889396, upload-time = "2026-11-05T18:52:15.549Z" }, ] [[package]] @@ -2529,27 +2517,27 @@ wheels = [ [[package]] name = "ty" -version = "0.0.95" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/39/08/d63954788578b9189dbf85081d8cbdba9a32a9a6a29729129a0da09cd3a0/ty-0.0.95.tar.gz", hash = "sha256:a480853a74d43074b2d4b28025d406b9d7223f7fe9f3a6c2adec3eacdbf14ca0", size = 8115525, upload-time = "2026-10-29T19:21:51.955Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/f6/c8/8f912c9d91503aa26b704838e2ecba448fae5713a799e2022e03e20d5186/ty-0.0.95-py3-none-linux_armv6l.whl", hash = "sha256:4e0745137dbd472027e71827ef9dec803439395319a182835fea2bb7ccc264cb", size = 14526217, upload-time = "2026-10-29T19:21:11.573Z" }, - { url = "https://files.pythonhosted.org/packages/49/6b/25feb9b4c04da26d2aa91527b0cc3de281aa45c9857abb900f1c4275e1aa/ty-0.0.95-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:3b9587b262312f94bce6b8c139db0542c44a1dce8c2224b4d33ab649b287b119", size = 14099685, upload-time = "2026-10-29T19:21:14.433Z" }, - { url = "https://files.pythonhosted.org/packages/dc/6b/2a084a72c8069f8496fcc0f576ec053f648b1baeed07532b3eb84c4982e4/ty-0.0.95-py3-none-macosx_11_0_arm64.whl", hash = "sha256:3e7902477410e897a60d2cf29ca89c28ef2a2abdb81698d8ae4be2e33b934d4b", size = 13144133, upload-time = "2026-10-29T19:21:16.734Z" }, - { url = "https://files.pythonhosted.org/packages/84/ad/e4088e627b3e3cd8cbb6ad08668cde33fc7093887606de6f23e4e3e639b9/ty-0.0.95-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cef0d06e2f286db6596e004f5820d4dd3b3a1a698465840e89a5e8a5934aca7c", size = 13996368, upload-time = "2026-10-29T19:21:19.061Z" }, - { url = "https://files.pythonhosted.org/packages/26/76/67b0ee993698496e0c93b5afbec7838cc26003ac74486fc11d89c15b52fb/ty-0.0.95-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4e032018e2aaeba51a48b639acacfd949be335cd2395faa205a305a9ff524b9f", size = 14262316, upload-time = "2026-10-29T19:21:21.303Z" }, - { url = "https://files.pythonhosted.org/packages/14/23/7214c42a9d8533c5f8a6384ba6d82adda9adab2347d5fe1c395c32c4e4e9/ty-0.0.95-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:30c98a2ea2d1a731d0db27a440bceea055ba3555e3e80d694e567110ba2a477a", size = 15217155, upload-time = "2026-10-29T19:21:23.597Z" }, - { url = "https://files.pythonhosted.org/packages/60/f8/4f51df84ba70438fbf2d481baa59cc8801d86e26a472a1c0b885c01c9c99/ty-0.0.95-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c26f09e9d6039f5ffc1b35e24830da67ff6202fef8583991e2ed169c0b188a54", size = 15607522, upload-time = "2026-10-29T19:21:26.245Z" }, - { url = "https://files.pythonhosted.org/packages/bb/7d/958cfc1e9cd56390f916f36d97a00b7aa15db88b2cf1a39c22f524c6078d/ty-0.0.95-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0e01e493e87aede663405e6f2cf38c65a95456c8181ab04e9e2e9662538ea717", size = 15562445, upload-time = "2026-10-29T19:21:28.642Z" }, - { url = "https://files.pythonhosted.org/packages/90/64/636308717989afa2fe765604ae2a76189f470d566e5e58da4482b625d64e/ty-0.0.95-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d47be2db5db80cd70c582b240a71dd8e9be215ce9288298c863c7c3611ef02b", size = 16312046, upload-time = "2026-10-29T19:21:30.801Z" }, - { url = "https://files.pythonhosted.org/packages/a9/75/e57a2c0bdce3dcf3d43ac15f3c9adc34212330e056db8a70208ab7f3730f/ty-0.0.95-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:3843233ed7ddca6d1d2e38034bf28d2618ff2fc8b16190d2efbbe46b066ea524", size = 15070529, upload-time = "2026-10-29T19:21:33.7Z" }, - { url = "https://files.pythonhosted.org/packages/a3/9f/2efd45b625fef61491986feae6f348449051ee474de4d79a77819c678aa9/ty-0.0.95-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:0b24691b55fc64d480d612bbf555ff369c80d56e26c33af94acb2cbadf1a37f6", size = 13962242, upload-time = "2026-10-29T19:21:36.001Z" }, - { url = "https://files.pythonhosted.org/packages/e6/a5/d5082fbb65305af5689f1e50f3b6b8897287f1ded5d06ef713faaed17e97/ty-0.0.95-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:bf72de3cc1d528b1b19020209f4692997f402bba40d8b3e5654906edf61d1c84", size = 14265678, upload-time = "2026-10-29T19:21:38.088Z" }, - { url = "https://files.pythonhosted.org/packages/7d/e6/2347c9519c35179d7e2ca74b0ea0b9d78a503d6673905ae911dfcc13f2ed/ty-0.0.95-py3-none-musllinux_1_2_i686.whl", hash = "sha256:721260b0dc05f9bb3fe79db642a2eed94aec99de2d995c7c92e56ffd8637b1a1", size = 14636684, upload-time = "2026-10-29T19:21:40.466Z" }, - { url = "https://files.pythonhosted.org/packages/d2/b4/bac1a90c887c0251955ed17e5da8139b4ac87352d67fcb3d1ffdb1b8723e/ty-0.0.95-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:156abe019cea9aa54e581d89ca34a48f81b8e4e9c49c203943feb60a06b822af", size = 14985737, upload-time = "2026-10-29T19:21:42.66Z" }, - { url = "https://files.pythonhosted.org/packages/68/ef/8840c75892f50107a541e7ca3fc0912d9dce133e4e13728838981901e1c1/ty-0.0.95-py3-none-win32.whl", hash = "sha256:b1903d8c17645c29ee566e708bee569d971c461f3429872305a574ccdae4c732", size = 13503067, upload-time = "2026-10-29T19:21:45.085Z" }, - { url = "https://files.pythonhosted.org/packages/b2/df/46fdcc84de81159e1d40ca103d24ac08b2450a2a51a1572333e8e796b8fc/ty-0.0.95-py3-none-win_amd64.whl", hash = "sha256:d07bd09f8a525759a595e04051e923aa54f8dc483f90e6a0b003d77a3fae0f04", size = 14097073, upload-time = "2026-10-29T19:21:47.462Z" }, - { url = "https://files.pythonhosted.org/packages/4a/e4/84cf4f3c313448d97550fdce50e7c70b934b38765772dd4f7fdaac064cca/ty-0.0.95-py3-none-win_arm64.whl", hash = "sha256:74ac66df3cb1851e3f157c4e664aec1f28857b467c7e13f62ccf53efc6884c82", size = 13575281, upload-time = "2026-10-29T19:21:49.773Z" }, +version = "0.0.100" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/2a/b4/ac430b910566e28b1cd01faf7ee07ca38bcd7585b30fce8fd25dfc104edc/ty-0.0.100.tar.gz", hash = "sha256:ca75081ead663c077e40b90c38b6e9f039b6d168051e02918a8a1d7ecc4fa0dd", size = 8238916, upload-time = "2026-11-09T20:16:27.534Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/05/54/524bdb4f8d3afa86296beb3e3f431301547b7aa3ce9ae839cff6265148aa/ty-0.0.100-py3-none-linux_armv6l.whl", hash = "sha256:f6059a1429f8f4147a93d601acb1c792fe8b88d3b41391a336ade557228b09cf", size = 14880599, upload-time = "2026-11-09T20:15:41.667Z" }, + { url = "https://files.pythonhosted.org/packages/c5/a1/9bb8d1c79d46257289299d42c5e1719527eb99624bd1ce07ebb775f78e6a/ty-0.0.100-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:de874a1cef7bc54b2f162a82e3f8a066c6356204df0f44e31c4f84e0a0f46fdc", size = 14482351, upload-time = "2026-11-09T20:15:44.801Z" }, + { url = "https://files.pythonhosted.org/packages/57/3f/7a6790546398fdf4d2dcd2c496a9f229c018f9a72f8e95120432ee85609c/ty-0.0.100-py3-none-macosx_11_0_arm64.whl", hash = "sha256:c45a02b8d11675f009124ee082b070204e5c57721acb3b44b0567721db3710d5", size = 13437855, upload-time = "2026-11-09T20:15:47.498Z" }, + { url = "https://files.pythonhosted.org/packages/4b/45/ad4c8b88eacdb0e09590dbb90ca15b3eeebdaf91bfbfae265a00cad6608c/ty-0.0.100-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1e85f94c680722635e07e24949faf2c52b62139e721ba724981801ac47ab6e67", size = 14317038, upload-time = "2026-11-09T20:15:49.849Z" }, + { url = "https://files.pythonhosted.org/packages/ba/30/84f624735db9b001ce24ca4459af2a66e7fbcb7f62d18ad59ac15ac63879/ty-0.0.100-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:81678a99b4eb1a62e887f9315923aa6438ddf3f78dfa02bc26f441f1d31a5879", size = 14610161, upload-time = "2026-11-09T20:15:52.337Z" }, + { url = "https://files.pythonhosted.org/packages/d5/9c/13c5830c75d1cf448b601404c043dbefcc37eb6d042d97eed40c2c525f8e/ty-0.0.100-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2b684eab7e3d61de3a929416e38e9eb8ef1d6442feb13f0b94bc8e72e483763c", size = 15602690, upload-time = "2026-11-09T20:15:54.889Z" }, + { url = "https://files.pythonhosted.org/packages/9e/9f/1f480d1b731e04c6e55b2c413b18f4c209d001a3ce8f9a508791197b5ef2/ty-0.0.100-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fddaddb71dd6019e5e32f9faa690a9851ec345ba8a59c02c82966bac4eee9afe", size = 16011216, upload-time = "2026-11-09T20:15:57.835Z" }, + { url = "https://files.pythonhosted.org/packages/f8/1d/5ebd4b372e28b493b82f7ff1bf612753334080896a4ac0ee0c7b9a13ffd0/ty-0.0.100-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:50f7ae81ff38eab05f13fdb2caccce9ebded08dbef0e4c680a23e91aae0bda6a", size = 15925281, upload-time = "2026-11-09T20:16:01.275Z" }, + { url = "https://files.pythonhosted.org/packages/b8/56/02b46b2a5f78f6edbd29afde54fce4461dd6462f901974deac0c9c1a987b/ty-0.0.100-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e23076fd67dc5c740a5cd292f3bbc10b82127dd01df3cb559e12b3144ceef72d", size = 16749475, upload-time = "2026-11-09T20:16:05.195Z" }, + { url = "https://files.pythonhosted.org/packages/22/56/fe9dd55573e9e65d6ed4bedbce97a3a1bab3fcc33f20f09f89c4abc462c1/ty-0.0.100-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:a1006c1a8eff26bbbbc7e909ec43284e61478a3ac3aa1d7cf0c23120a4a2ac48", size = 15466325, upload-time = "2026-11-09T20:16:07.816Z" }, + { url = "https://files.pythonhosted.org/packages/a6/55/d518f662e8556a438bc4653eefc07256f93c6d71b23012f7c44e30b7f48f/ty-0.0.100-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:fae832c5da4da1a1dc1952f0dc9b3655f2b2266c27b6d0c87b40d02cd1b02601", size = 14330127, upload-time = "2026-11-09T20:16:10.386Z" }, + { url = "https://files.pythonhosted.org/packages/3c/da/a871955054a9eb80635d6d46c8b1f49430bc74cd6e21152428109aefac0c/ty-0.0.100-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:f1a486d914fcb858bc02818f2684db3609207c8ab261256657bfe0fa51544855", size = 14622284, upload-time = "2026-11-09T20:16:13.044Z" }, + { url = "https://files.pythonhosted.org/packages/ec/b1/d5a64e177271dde1069bff2ef3294be48cb7590c690bccdc2189018a0775/ty-0.0.100-py3-none-musllinux_1_2_i686.whl", hash = "sha256:e70709927d0e926b96590a8a42fbfef01e9c30a70171e9f1ea18403b5b3aca8a", size = 14994667, upload-time = "2026-11-09T20:16:15.344Z" }, + { url = "https://files.pythonhosted.org/packages/71/0a/619e73420ad849974e9b0b52b12047455f13168682603919dbe2f1d7d9a9/ty-0.0.100-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:51926133e69153748ca27e9079802baf8cdda7170ec40eea037752117754cb32", size = 15377827, upload-time = "2026-11-09T20:16:17.806Z" }, + { url = "https://files.pythonhosted.org/packages/2f/1b/c845fcda0d2549c4d7b6023dde2cbac8a108253e3fe7ceae02b2e1f58fab/ty-0.0.100-py3-none-win32.whl", hash = "sha256:6eeb12edfb3608427aa657983b1ddad1d0c73915752d092bfe5c35315804b071", size = 13789591, upload-time = "2026-11-09T20:16:20.28Z" }, + { url = "https://files.pythonhosted.org/packages/3b/35/2becc700b2384a2d0b373626ed59c6706d2089888a14721199dba1aa3094/ty-0.0.100-py3-none-win_amd64.whl", hash = "sha256:01c230d3046f0d5e8ab6e1def4131aab21659a1d290cc88b39b4fde04bfad0c0", size = 14440120, upload-time = "2026-11-09T20:16:22.858Z" }, + { url = "https://files.pythonhosted.org/packages/5f/d5/5c46cefc47f3c18c09caf5a370eb9a70945d9f86fd79ac6e0a5e40180fe4/ty-0.0.100-py3-none-win_arm64.whl", hash = "sha256:e5ef15fae8544582d03c78b5287abd18eac78e5f21dff80b5febb2e038e97205", size = 13909648, upload-time = "2026-11-09T20:16:25.274Z" }, ] [[package]] From 88c4cb6ccc68272d2726c2b900e759043915736e Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 18 Nov 2026 00:46:17 -0800 Subject: [PATCH 2/3] fix(ci): preserve dependency policy metadata --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0d147bd409..a7f7a62024 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ realtime = ["websockets >= 13, < 16"] datalib = ["numpy >= 1", "pandas >= 1.2.3"] voice_helpers = ["sounddevice>=0.5.1", "numpy>=2.0.2"] bedrock = [ - "botocore<2,>=1.40.0", + "botocore>=1.40.0,<2", "urllib3>=2.7.0,<3", ] vertex = ["google-auth[requests]>=2.36,<3"] diff --git a/uv.lock b/uv.lock index 70b6cfc1e3..a609f1bd51 100644 --- a/uv.lock +++ b/uv.lock @@ -1508,7 +1508,7 @@ wheels = [ [[package]] name = "openai" -version = "3.55.0" +version = "3.55.0" # x-release-please-version source = { editable = "." } default-groups = ["dev", "pydantic-v2"] dependencies = [ From 183aea0bae0d9dc2563d4d1acda484d3c7faa3b9 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 18 Nov 2026 00:56:01 -0800 Subject: [PATCH 3/3] fix(types): migrate diagnostics for ty 0.0.100 --- examples/browser-use-demo/exercise.py | 4 +- pyproject.toml | 2 +- src/openai/__init__.py | 4 +- src/openai/_base_client.py | 4 +- src/openai/_models.py | 2 +- src/openai/_utils/_utils.py | 2 +- src/openai/lib/beta/agents/_tools.py | 2 +- src/openai/lib/realtime_translation.py | 5 +- src/openai/lib/streaming/chat/_completions.py | 2 +- .../lib/streaming/responses/_responses.py | 2 +- .../beta/agents/automations/automations.py | 302 ++++++++---------- .../resources/beta/realtime/realtime.py | 8 +- .../resources/beta/responses/responses.py | 10 +- src/openai/resources/conversations/items.py | 54 ++-- src/openai/resources/live/forks.py | 4 +- src/openai/resources/live/live.py | 4 +- src/openai/resources/live/sideband.py | 8 +- src/openai/resources/realtime/realtime.py | 8 +- .../realtime/translations/translations.py | 10 +- src/openai/resources/responses/responses.py | 10 +- .../beta_response_custom_tool_call_item.py | 2 +- ...a_response_custom_tool_call_output_item.py | 2 +- .../beta_response_function_tool_call_item.py | 4 +- .../types/chat/parsed_chat_completion.py | 4 +- src/openai/types/responses/parsed_response.py | 4 +- .../response_custom_tool_call_item.py | 2 +- .../response_custom_tool_call_output_item.py | 2 +- .../response_function_tool_call_item.py | 4 +- tests/lib/beta/agents/test_tools.py | 6 +- tests/lib/live/helpers.py | 2 +- .../lib/responses/test_commentary_parsing.py | 4 +- .../responses/test_websocket_accumulator.py | 6 +- tests/lib/test_browser.py | 4 +- tests/lib/test_browser_registration.py | 4 +- tests/lib/test_decisions_tool_runner.py | 2 +- tests/lib/test_old_api.py | 4 +- tests/lib/test_vertex_provider.py | 2 +- tests/test_models.py | 2 +- tests/test_websocket_connection_options.py | 20 +- 39 files changed, 229 insertions(+), 298 deletions(-) diff --git a/examples/browser-use-demo/exercise.py b/examples/browser-use-demo/exercise.py index afd3435cb6..e010d5cea0 100644 --- a/examples/browser-use-demo/exercise.py +++ b/examples/browser-use-demo/exercise.py @@ -247,7 +247,7 @@ async def hold_verified(*, cancelled: Callable[[], bool] | None = None) -> None: await asyncio.wait_for(release.wait(), timeout=5) await original_capture(cancelled=cancelled) - current.capture = hold_verified # ty: ignore[invalid-assignment] # Test replaces a callable with a controlled fixture. + current.capture = hold_verified # Test replaces a callable with a controlled fixture. try: await post("/api/approval", {**binding(offered), "approvalId": offered["approval"]["id"], "approved": True}) await asyncio.wait_for(entered.wait(), timeout=5) @@ -277,7 +277,7 @@ async def hold_verified(*, cancelled: Callable[[], bool] | None = None) -> None: assert stopped["result"] == "unverified", "The old agent result survived human editing and Stop" finally: release.set() - current.capture = original_capture # ty: ignore[invalid-assignment] # Test replaces a callable with a controlled fixture. + current.capture = original_capture # Test replaces a callable with a controlled fixture. await post("/api/start", {"taskId": "reservation", "api": "decisions", "mode": "rehearsal"}) offered = await until(lambda s: s["approval"] is not None) await post("/api/take-control", binding(offered)) diff --git a/pyproject.toml b/pyproject.toml index a7f7a62024..b99951980d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -202,7 +202,7 @@ include = [ [tool.ty.overrides.rules] # These Pydantic models and HTTP exceptions intentionally narrow mutable fields. # Preserve their existing contract without suppressing unrelated overrides. -invalid-mutable-override = "ignore" +incompatible-mutable-override = "ignore" [[tool.ty.overrides]] include = [ diff --git a/src/openai/__init__.py b/src/openai/__init__.py index 3d6c4a262f..2d3bddd47d 100644 --- a/src/openai/__init__.py +++ b/src/openai/__init__.py @@ -231,8 +231,8 @@ def api_key(self) -> str | None: return api_key @api_key.setter - def api_key(self, value: str | None) -> None: # ty: ignore[invalid-property-type-override] - global api_key # ty: ignore[invalid-property-type-override] + def api_key(self, value: str | None) -> None: # ty: ignore[incompatible-property-override] + global api_key # ty: ignore[incompatible-property-override] api_key = value diff --git a/src/openai/_base_client.py b/src/openai/_base_client.py index bde6eb0d01..a9e8829267 100644 --- a/src/openai/_base_client.py +++ b/src/openai/_base_client.py @@ -335,7 +335,7 @@ def _set_private_attributes( # methods should continue to work as expected as there is an alternative method # to cast a model to a dictionary, model.dict(), which is used internally # by pydantic. - def __iter__(self) -> Iterator[_T]: # ty: ignore[invalid-method-override] + def __iter__(self) -> Iterator[_T]: # ty: ignore[incompatible-method-override] for page in self.iter_pages(): for item in page._get_page_items(): yield item @@ -2211,7 +2211,7 @@ def make_request_options( if is_given(post_parser): # Internal request hook deliberately omitted from the public RequestOptions type. - options["post_parser"] = post_parser # ty: ignore[invalid-key] + options["post_parser"] = post_parser # ty: ignore[invalid-typed-dict-key] if security is not None: options["security"] = security diff --git a/src/openai/_models.py b/src/openai/_models.py index 35ce546cd9..092c70d82f 100644 --- a/src/openai/_models.py +++ b/src/openai/_models.py @@ -1017,7 +1017,7 @@ def _strip_raw_response_header(self) -> None: # type ignore required because we're adding explicit types to `**values` @classmethod - def construct( # ty: ignore[invalid-method-override] + def construct( # ty: ignore[incompatible-method-override] cls, _fields_set: set[str] | None = None, **values: Unpack[FinalRequestOptionsInput], diff --git a/src/openai/_utils/_utils.py b/src/openai/_utils/_utils.py index fdec0160aa..1b6519435d 100644 --- a/src/openai/_utils/_utils.py +++ b/src/openai/_utils/_utils.py @@ -269,7 +269,7 @@ def wrapper(*args: object, **kwargs: object) -> object: given_params.add(positional[i]) except IndexError: raise TypeError( - f"{func.__name__}() takes {len(positional)} argument(s) but {len(args)} were given" # ty: ignore[unresolved-attribute] + f"{func.__name__}() takes {len(positional)} argument(s) but {len(args)} were given" # ty: ignore[missing-attribute] ) from None for key in kwargs.keys(): diff --git a/src/openai/lib/beta/agents/_tools.py b/src/openai/lib/beta/agents/_tools.py index 6801b28676..47ad18a710 100644 --- a/src/openai/lib/beta/agents/_tools.py +++ b/src/openai/lib/beta/agents/_tools.py @@ -330,7 +330,7 @@ async def invoke_async(arguments: pydantic.BaseModel) -> object: return pydantic_function_tool( model, handler=invoke_async if inspect.iscoroutinefunction(function) else invoke, - name=function.__name__ if name is None else name, # ty: ignore[unresolved-attribute] + name=function.__name__ if name is None else name, # ty: ignore[missing-attribute] description=(inspect.getdoc(function) or "") if description is None else description, defer_loading=defer_loading, ) diff --git a/src/openai/lib/realtime_translation.py b/src/openai/lib/realtime_translation.py index 39ae4bb906..2fbfe49ed6 100644 --- a/src/openai/lib/realtime_translation.py +++ b/src/openai/lib/realtime_translation.py @@ -78,10 +78,7 @@ def _parse(data: str | bytes) -> RealtimeTranslationServerEvent: # forward-compatible parsing, including unknown server events, elsewhere. if is_dict(value) and value.get("type") == "session.closed": return validate_type(type_=RealtimeTranslationSessionClosedEvent, value=value) - return cast( - RealtimeTranslationServerEvent, - construct_type_unchecked(value=value, type_=cast(Any, RealtimeTranslationServerEvent)), - ) + return construct_type_unchecked(value=value, type_=cast(Any, RealtimeTranslationServerEvent)) class TranslationConnection: diff --git a/src/openai/lib/streaming/chat/_completions.py b/src/openai/lib/streaming/chat/_completions.py index b23101ac84..e753bd18e9 100644 --- a/src/openai/lib/streaming/chat/_completions.py +++ b/src/openai/lib/streaming/chat/_completions.py @@ -662,7 +662,7 @@ def _content_done_events( events_to_fire.append( build( - ContentDoneEvent, + cast("type[ContentDoneEvent[ResponseFormatT]]", ContentDoneEvent), type="content.done", content=choice_snapshot.message.content, parsed=parsed, diff --git a/src/openai/lib/streaming/responses/_responses.py b/src/openai/lib/streaming/responses/_responses.py index 6d379f8e6c..9d6e037964 100644 --- a/src/openai/lib/streaming/responses/_responses.py +++ b/src/openai/lib/streaming/responses/_responses.py @@ -362,7 +362,7 @@ def handle_event(self, event: RawResponseStreamEvent) -> List[ResponseStreamEven events.append( build( - ResponseCompletedEvent, + cast("type[ResponseCompletedEvent[TextFormatT]]", ResponseCompletedEvent), sequence_number=event.sequence_number, type="response.completed", response=response, diff --git a/src/openai/resources/beta/agents/automations/automations.py b/src/openai/resources/beta/agents/automations/automations.py index 2b6f4db4ae..7276d8f9be 100644 --- a/src/openai/resources/beta/agents/automations/automations.py +++ b/src/openai/resources/beta/agents/automations/automations.py @@ -158,31 +158,28 @@ def create( timeout: float | httpx2.Timeout | None | NotGiven = not_given, ) -> Automation: extra_headers = {"OpenAI-Beta": "agents=v1", **(extra_headers or {})} - return cast( - Automation, - self._post( - "/agents/automations", - body=maybe_transform( - { - "expression": expression, - "name": name, - "target": target, - "timezone": timezone, - "type": type, - "metadata": metadata, - "run_at": run_at, - }, - automation_create_params.AutomationCreateParams, - ), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - security={"bearer_auth": True}, - ), - cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system + return self._post( + "/agents/automations", + body=maybe_transform( + { + "expression": expression, + "name": name, + "target": target, + "timezone": timezone, + "type": type, + "metadata": metadata, + "run_at": run_at, + }, + automation_create_params.AutomationCreateParams, + ), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + security={"bearer_auth": True}, ), + cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system ) def retrieve( @@ -211,19 +208,16 @@ def retrieve( if not automation_id: raise ValueError(f"Expected a non-empty value for `automation_id` but received {automation_id!r}") extra_headers = {"OpenAI-Beta": "agents=v1", **(extra_headers or {})} - return cast( - Automation, - self._get( - path_template("/agents/automations/{automation_id}", automation_id=automation_id), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - security={"bearer_auth": True}, - ), - cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system + return self._get( + path_template("/agents/automations/{automation_id}", automation_id=automation_id), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + security={"bearer_auth": True}, ), + cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system ) def update( @@ -269,30 +263,27 @@ def update( if not automation_id: raise ValueError(f"Expected a non-empty value for `automation_id` but received {automation_id!r}") extra_headers = {"OpenAI-Beta": "agents=v1", **(extra_headers or {})} - return cast( - Automation, - self._post( - path_template("/agents/automations/{automation_id}", automation_id=automation_id), - body=maybe_transform( - { - "expression": expression, - "metadata": metadata, - "name": name, - "run_at": run_at, - "target": target, - "timezone": timezone, - }, - automation_update_params.AutomationUpdateParams, - ), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - security={"bearer_auth": True}, - ), - cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system + return self._post( + path_template("/agents/automations/{automation_id}", automation_id=automation_id), + body=maybe_transform( + { + "expression": expression, + "metadata": metadata, + "name": name, + "run_at": run_at, + "target": target, + "timezone": timezone, + }, + automation_update_params.AutomationUpdateParams, + ), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + security={"bearer_auth": True}, ), + cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system ) def list( @@ -420,19 +411,16 @@ def pause( if not automation_id: raise ValueError(f"Expected a non-empty value for `automation_id` but received {automation_id!r}") extra_headers = {"OpenAI-Beta": "agents=v1", **(extra_headers or {})} - return cast( - Automation, - self._post( - path_template("/agents/automations/{automation_id}/pause", automation_id=automation_id), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - security={"bearer_auth": True}, - ), - cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system + return self._post( + path_template("/agents/automations/{automation_id}/pause", automation_id=automation_id), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + security={"bearer_auth": True}, ), + cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system ) def resume( @@ -462,19 +450,16 @@ def resume( if not automation_id: raise ValueError(f"Expected a non-empty value for `automation_id` but received {automation_id!r}") extra_headers = {"OpenAI-Beta": "agents=v1", **(extra_headers or {})} - return cast( - Automation, - self._post( - path_template("/agents/automations/{automation_id}/resume", automation_id=automation_id), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - security={"bearer_auth": True}, - ), - cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system + return self._post( + path_template("/agents/automations/{automation_id}/resume", automation_id=automation_id), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + security={"bearer_auth": True}, ), + cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system ) @@ -600,31 +585,28 @@ async def create( timeout: float | httpx2.Timeout | None | NotGiven = not_given, ) -> Automation: extra_headers = {"OpenAI-Beta": "agents=v1", **(extra_headers or {})} - return cast( - Automation, - await self._post( - "/agents/automations", - body=await async_maybe_transform( - { - "expression": expression, - "name": name, - "target": target, - "timezone": timezone, - "type": type, - "metadata": metadata, - "run_at": run_at, - }, - automation_create_params.AutomationCreateParams, - ), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - security={"bearer_auth": True}, - ), - cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system + return await self._post( + "/agents/automations", + body=await async_maybe_transform( + { + "expression": expression, + "name": name, + "target": target, + "timezone": timezone, + "type": type, + "metadata": metadata, + "run_at": run_at, + }, + automation_create_params.AutomationCreateParams, + ), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + security={"bearer_auth": True}, ), + cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system ) async def retrieve( @@ -653,19 +635,16 @@ async def retrieve( if not automation_id: raise ValueError(f"Expected a non-empty value for `automation_id` but received {automation_id!r}") extra_headers = {"OpenAI-Beta": "agents=v1", **(extra_headers or {})} - return cast( - Automation, - await self._get( - path_template("/agents/automations/{automation_id}", automation_id=automation_id), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - security={"bearer_auth": True}, - ), - cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system + return await self._get( + path_template("/agents/automations/{automation_id}", automation_id=automation_id), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + security={"bearer_auth": True}, ), + cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system ) async def update( @@ -711,30 +690,27 @@ async def update( if not automation_id: raise ValueError(f"Expected a non-empty value for `automation_id` but received {automation_id!r}") extra_headers = {"OpenAI-Beta": "agents=v1", **(extra_headers or {})} - return cast( - Automation, - await self._post( - path_template("/agents/automations/{automation_id}", automation_id=automation_id), - body=await async_maybe_transform( - { - "expression": expression, - "metadata": metadata, - "name": name, - "run_at": run_at, - "target": target, - "timezone": timezone, - }, - automation_update_params.AutomationUpdateParams, - ), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - security={"bearer_auth": True}, - ), - cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system + return await self._post( + path_template("/agents/automations/{automation_id}", automation_id=automation_id), + body=await async_maybe_transform( + { + "expression": expression, + "metadata": metadata, + "name": name, + "run_at": run_at, + "target": target, + "timezone": timezone, + }, + automation_update_params.AutomationUpdateParams, + ), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + security={"bearer_auth": True}, ), + cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system ) def list( @@ -862,19 +838,16 @@ async def pause( if not automation_id: raise ValueError(f"Expected a non-empty value for `automation_id` but received {automation_id!r}") extra_headers = {"OpenAI-Beta": "agents=v1", **(extra_headers or {})} - return cast( - Automation, - await self._post( - path_template("/agents/automations/{automation_id}/pause", automation_id=automation_id), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - security={"bearer_auth": True}, - ), - cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system + return await self._post( + path_template("/agents/automations/{automation_id}/pause", automation_id=automation_id), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + security={"bearer_auth": True}, ), + cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system ) async def resume( @@ -904,19 +877,16 @@ async def resume( if not automation_id: raise ValueError(f"Expected a non-empty value for `automation_id` but received {automation_id!r}") extra_headers = {"OpenAI-Beta": "agents=v1", **(extra_headers or {})} - return cast( - Automation, - await self._post( - path_template("/agents/automations/{automation_id}/resume", automation_id=automation_id), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - security={"bearer_auth": True}, - ), - cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system + return await self._post( + path_template("/agents/automations/{automation_id}/resume", automation_id=automation_id), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + security={"bearer_auth": True}, ), + cast_to=cast(Any, Automation), # Union types cannot be passed in as arguments in the type system ) diff --git a/src/openai/resources/beta/realtime/realtime.py b/src/openai/resources/beta/realtime/realtime.py index 76b837a53c..9863254ad4 100644 --- a/src/openai/resources/beta/realtime/realtime.py +++ b/src/openai/resources/beta/realtime/realtime.py @@ -297,9 +297,7 @@ def parse_event(self, data: str | bytes) -> RealtimeServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast( - RealtimeServerEvent, construct_type_unchecked(value=json.loads(data), type_=cast(Any, RealtimeServerEvent)) - ) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, RealtimeServerEvent)) class AsyncRealtimeConnectionManager: @@ -487,9 +485,7 @@ def parse_event(self, data: str | bytes) -> RealtimeServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast( - RealtimeServerEvent, construct_type_unchecked(value=json.loads(data), type_=cast(Any, RealtimeServerEvent)) - ) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, RealtimeServerEvent)) class RealtimeConnectionManager: diff --git a/src/openai/resources/beta/responses/responses.py b/src/openai/resources/beta/responses/responses.py index 3b0d934044..117e181aaf 100644 --- a/src/openai/resources/beta/responses/responses.py +++ b/src/openai/resources/beta/responses/responses.py @@ -5077,10 +5077,7 @@ def parse_event(self, data: str | bytes) -> BetaResponsesServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast( - BetaResponsesServerEvent, - construct_type_unchecked(value=json.loads(data), type_=cast(Any, BetaResponsesServerEvent)), - ) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, BetaResponsesServerEvent)) def on( self, event_type: str, handler: Callable[..., Any] | None = None @@ -5407,10 +5404,7 @@ def parse_event(self, data: str | bytes) -> BetaResponsesServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast( - BetaResponsesServerEvent, - construct_type_unchecked(value=json.loads(data), type_=cast(Any, BetaResponsesServerEvent)), - ) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, BetaResponsesServerEvent)) def on( self, event_type: str, handler: Callable[..., Any] | None = None diff --git a/src/openai/resources/conversations/items.py b/src/openai/resources/conversations/items.py index f73161d941..0e3e3f5ca6 100644 --- a/src/openai/resources/conversations/items.py +++ b/src/openai/resources/conversations/items.py @@ -127,22 +127,19 @@ def retrieve( raise ValueError(f"Expected a non-empty value for `conversation_id` but received {conversation_id!r}") if not item_id: raise ValueError(f"Expected a non-empty value for `item_id` but received {item_id!r}") - return cast( - ConversationItem, - self._get( - path_template( - "/conversations/{conversation_id}/items/{item_id}", conversation_id=conversation_id, item_id=item_id - ), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=maybe_transform({"include": include}, item_retrieve_params.ItemRetrieveParams), - security={"bearer_auth": True}, - ), - cast_to=cast(Any, ConversationItem), # Union types cannot be passed in as arguments in the type system + return self._get( + path_template( + "/conversations/{conversation_id}/items/{item_id}", conversation_id=conversation_id, item_id=item_id + ), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + query=maybe_transform({"include": include}, item_retrieve_params.ItemRetrieveParams), + security={"bearer_auth": True}, ), + cast_to=cast(Any, ConversationItem), # Union types cannot be passed in as arguments in the type system ) def list( @@ -370,22 +367,19 @@ async def retrieve( raise ValueError(f"Expected a non-empty value for `conversation_id` but received {conversation_id!r}") if not item_id: raise ValueError(f"Expected a non-empty value for `item_id` but received {item_id!r}") - return cast( - ConversationItem, - await self._get( - path_template( - "/conversations/{conversation_id}/items/{item_id}", conversation_id=conversation_id, item_id=item_id - ), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=await async_maybe_transform({"include": include}, item_retrieve_params.ItemRetrieveParams), - security={"bearer_auth": True}, - ), - cast_to=cast(Any, ConversationItem), # Union types cannot be passed in as arguments in the type system + return await self._get( + path_template( + "/conversations/{conversation_id}/items/{item_id}", conversation_id=conversation_id, item_id=item_id + ), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + query=await async_maybe_transform({"include": include}, item_retrieve_params.ItemRetrieveParams), + security={"bearer_auth": True}, ), + cast_to=cast(Any, ConversationItem), # Union types cannot be passed in as arguments in the type system ) def list( diff --git a/src/openai/resources/live/forks.py b/src/openai/resources/live/forks.py index b5a8a9a4cf..2c4d95598d 100644 --- a/src/openai/resources/live/forks.py +++ b/src/openai/resources/live/forks.py @@ -230,7 +230,7 @@ def parse_event(self, data: str | bytes) -> ForkServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast(ForkServerEvent, construct_type_unchecked(value=json.loads(data), type_=cast(Any, ForkServerEvent))) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, ForkServerEvent)) def on( self, event_type: str, handler: Callable[..., Any] | None = None @@ -662,7 +662,7 @@ def parse_event(self, data: str | bytes) -> ForkServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast(ForkServerEvent, construct_type_unchecked(value=json.loads(data), type_=cast(Any, ForkServerEvent))) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, ForkServerEvent)) def on( self, event_type: str, handler: Callable[..., Any] | None = None diff --git a/src/openai/resources/live/live.py b/src/openai/resources/live/live.py index 438b2797fb..52c0d2bfc7 100644 --- a/src/openai/resources/live/live.py +++ b/src/openai/resources/live/live.py @@ -450,7 +450,7 @@ def parse_event(self, data: str | bytes) -> ServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast(ServerEvent, construct_type_unchecked(value=json.loads(data), type_=cast(Any, ServerEvent))) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, ServerEvent)) def on( self, event_type: str, handler: Callable[..., Any] | None = None @@ -875,7 +875,7 @@ def parse_event(self, data: str | bytes) -> ServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast(ServerEvent, construct_type_unchecked(value=json.loads(data), type_=cast(Any, ServerEvent))) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, ServerEvent)) def on( self, event_type: str, handler: Callable[..., Any] | None = None diff --git a/src/openai/resources/live/sideband.py b/src/openai/resources/live/sideband.py index 38746f31de..9084ba987f 100644 --- a/src/openai/resources/live/sideband.py +++ b/src/openai/resources/live/sideband.py @@ -235,9 +235,7 @@ def parse_event(self, data: str | bytes) -> ConnectServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast( - ConnectServerEvent, construct_type_unchecked(value=json.loads(data), type_=cast(Any, ConnectServerEvent)) - ) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, ConnectServerEvent)) def on( self, event_type: str, handler: Callable[..., Any] | None = None @@ -676,9 +674,7 @@ def parse_event(self, data: str | bytes) -> ConnectServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast( - ConnectServerEvent, construct_type_unchecked(value=json.loads(data), type_=cast(Any, ConnectServerEvent)) - ) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, ConnectServerEvent)) def on( self, event_type: str, handler: Callable[..., Any] | None = None diff --git a/src/openai/resources/realtime/realtime.py b/src/openai/resources/realtime/realtime.py index 2382f9d78a..2275eef242 100644 --- a/src/openai/resources/realtime/realtime.py +++ b/src/openai/resources/realtime/realtime.py @@ -428,9 +428,7 @@ def parse_event(self, data: str | bytes) -> RealtimeServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast( - RealtimeServerEvent, construct_type_unchecked(value=json.loads(data), type_=cast(Any, RealtimeServerEvent)) - ) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, RealtimeServerEvent)) def on( self, event_type: str, handler: Callable[..., Any] | None = None @@ -893,9 +891,7 @@ def parse_event(self, data: str | bytes) -> RealtimeServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast( - RealtimeServerEvent, construct_type_unchecked(value=json.loads(data), type_=cast(Any, RealtimeServerEvent)) - ) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, RealtimeServerEvent)) def on( self, event_type: str, handler: Callable[..., Any] | None = None diff --git a/src/openai/resources/realtime/translations/translations.py b/src/openai/resources/realtime/translations/translations.py index b5843aac6b..ce7e5b368b 100644 --- a/src/openai/resources/realtime/translations/translations.py +++ b/src/openai/resources/realtime/translations/translations.py @@ -312,10 +312,7 @@ def parse_event(self, data: str | bytes) -> RealtimeTranslationServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast( - RealtimeTranslationServerEvent, - construct_type_unchecked(value=json.loads(data), type_=cast(Any, RealtimeTranslationServerEvent)), - ) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, RealtimeTranslationServerEvent)) def on( self, event_type: str, handler: Callable[..., Any] | None = None @@ -742,10 +739,7 @@ def parse_event(self, data: str | bytes) -> RealtimeTranslationServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast( - RealtimeTranslationServerEvent, - construct_type_unchecked(value=json.loads(data), type_=cast(Any, RealtimeTranslationServerEvent)), - ) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, RealtimeTranslationServerEvent)) def on( self, event_type: str, handler: Callable[..., Any] | None = None diff --git a/src/openai/resources/responses/responses.py b/src/openai/resources/responses/responses.py index 8ece939f0d..5149c206fa 100644 --- a/src/openai/resources/responses/responses.py +++ b/src/openai/resources/responses/responses.py @@ -4254,10 +4254,7 @@ def parse_event(self, data: str | bytes) -> ResponsesServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast( - ResponsesServerEvent, - construct_type_unchecked(value=json.loads(data), type_=cast(Any, ResponsesServerEvent)), - ) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, ResponsesServerEvent)) def on( self, event_type: str, handler: Callable[..., Any] | None = None @@ -4585,10 +4582,7 @@ def parse_event(self, data: str | bytes) -> ResponsesServerEvent: This is helpful if you're using `.recv_bytes()`. """ - return cast( - ResponsesServerEvent, - construct_type_unchecked(value=json.loads(data), type_=cast(Any, ResponsesServerEvent)), - ) + return construct_type_unchecked(value=json.loads(data), type_=cast(Any, ResponsesServerEvent)) def on( self, event_type: str, handler: Callable[..., Any] | None = None diff --git a/src/openai/types/beta/beta_response_custom_tool_call_item.py b/src/openai/types/beta/beta_response_custom_tool_call_item.py index 1bc0abc092..b4449ea6f9 100644 --- a/src/openai/types/beta/beta_response_custom_tool_call_item.py +++ b/src/openai/types/beta/beta_response_custom_tool_call_item.py @@ -11,7 +11,7 @@ class BetaResponseCustomToolCallItem(BetaResponseCustomToolCall): """A call to a custom tool created by the model.""" - id: str # ty: ignore[invalid-mutable-override] + id: str # ty: ignore[incompatible-mutable-override] """The unique ID of the custom tool call item.""" status: Literal["in_progress", "completed", "incomplete"] diff --git a/src/openai/types/beta/beta_response_custom_tool_call_output_item.py b/src/openai/types/beta/beta_response_custom_tool_call_output_item.py index 2f3470a1d8..31012b7546 100644 --- a/src/openai/types/beta/beta_response_custom_tool_call_output_item.py +++ b/src/openai/types/beta/beta_response_custom_tool_call_output_item.py @@ -11,7 +11,7 @@ class BetaResponseCustomToolCallOutputItem(BetaResponseCustomToolCallOutput): """The output of a custom tool call from your code, being sent back to the model.""" - id: str # ty: ignore[invalid-mutable-override] + id: str # ty: ignore[incompatible-mutable-override] """The unique ID of the custom tool call output item.""" status: Literal["in_progress", "completed", "incomplete"] diff --git a/src/openai/types/beta/beta_response_function_tool_call_item.py b/src/openai/types/beta/beta_response_function_tool_call_item.py index 7536973a0a..91c03016ed 100644 --- a/src/openai/types/beta/beta_response_function_tool_call_item.py +++ b/src/openai/types/beta/beta_response_function_tool_call_item.py @@ -15,10 +15,10 @@ class BetaResponseFunctionToolCallItem(BetaResponseFunctionToolCall): [function calling guide](https://developers.openai.com/api/docs/guides/function-calling) for more information. """ - id: str # ty: ignore[invalid-mutable-override] + id: str # ty: ignore[incompatible-mutable-override] """The unique ID of the function tool call.""" - status: Literal["in_progress", "completed", "incomplete"] # ty: ignore[invalid-mutable-override] + status: Literal["in_progress", "completed", "incomplete"] # ty: ignore[incompatible-mutable-override] """The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are diff --git a/src/openai/types/chat/parsed_chat_completion.py b/src/openai/types/chat/parsed_chat_completion.py index ba7c36bc9c..68e22c928e 100644 --- a/src/openai/types/chat/parsed_chat_completion.py +++ b/src/openai/types/chat/parsed_chat_completion.py @@ -20,7 +20,7 @@ class ParsedChatCompletionMessage(ChatCompletionMessage, GenericModel, Generic[C parsed: Optional[ContentType] = None """The auto-parsed message contents""" - tool_calls: Optional[List[ParsedFunctionToolCall]] = None # ty: ignore[invalid-attribute-override] + tool_calls: Optional[List[ParsedFunctionToolCall]] = None # ty: ignore[incompatible-attribute-override] """The tool calls generated by the model, such as function calls.""" @@ -30,7 +30,7 @@ class ParsedChoice(Choice, GenericModel, Generic[ContentType]): class ParsedChatCompletion(ChatCompletion, GenericModel, Generic[ContentType]): - choices: List[ParsedChoice[ContentType]] # ty: ignore[invalid-attribute-override] + choices: List[ParsedChoice[ContentType]] # ty: ignore[incompatible-attribute-override] """A list of chat completion choices. Can be more than one if `n` is greater than 1. diff --git a/src/openai/types/responses/parsed_response.py b/src/openai/types/responses/parsed_response.py index 6fbc52d339..b88ba4840d 100644 --- a/src/openai/types/responses/parsed_response.py +++ b/src/openai/types/responses/parsed_response.py @@ -61,7 +61,7 @@ class ParsedResponseOutputText(ResponseOutputText, GenericModel, Generic[Content class ParsedResponseOutputMessage(ResponseOutputMessage, GenericModel, Generic[ContentType]): if TYPE_CHECKING: - content: List[ParsedContent[ContentType]] # ty: ignore[invalid-attribute-override] + content: List[ParsedContent[ContentType]] # ty: ignore[incompatible-attribute-override] else: content: List[ParsedContent] @@ -125,7 +125,7 @@ class ParsedResponseFunctionToolCall(ResponseFunctionToolCall): class ParsedResponse(Response, GenericModel, Generic[ContentType]): if TYPE_CHECKING: - output: List[ParsedResponseOutputItem[ContentType]] # ty: ignore[invalid-attribute-override] + output: List[ParsedResponseOutputItem[ContentType]] # ty: ignore[incompatible-attribute-override] else: output: List[ParsedResponseOutputItem] diff --git a/src/openai/types/responses/response_custom_tool_call_item.py b/src/openai/types/responses/response_custom_tool_call_item.py index e81646b870..bc4ff0e41d 100644 --- a/src/openai/types/responses/response_custom_tool_call_item.py +++ b/src/openai/types/responses/response_custom_tool_call_item.py @@ -11,7 +11,7 @@ class ResponseCustomToolCallItem(ResponseCustomToolCall): """A call to a custom tool created by the model.""" - id: str # ty: ignore[invalid-mutable-override] + id: str # ty: ignore[incompatible-mutable-override] """The unique ID of the custom tool call item.""" status: Literal["in_progress", "completed", "incomplete"] diff --git a/src/openai/types/responses/response_custom_tool_call_output_item.py b/src/openai/types/responses/response_custom_tool_call_output_item.py index 0f11cbc1d4..0279b0f200 100644 --- a/src/openai/types/responses/response_custom_tool_call_output_item.py +++ b/src/openai/types/responses/response_custom_tool_call_output_item.py @@ -11,7 +11,7 @@ class ResponseCustomToolCallOutputItem(ResponseCustomToolCallOutput): """The output of a custom tool call from your code, being sent back to the model.""" - id: str # ty: ignore[invalid-mutable-override] + id: str # ty: ignore[incompatible-mutable-override] """The unique ID of the custom tool call output item.""" status: Literal["in_progress", "completed", "incomplete"] diff --git a/src/openai/types/responses/response_function_tool_call_item.py b/src/openai/types/responses/response_function_tool_call_item.py index f39980465e..b550eabbc1 100644 --- a/src/openai/types/responses/response_function_tool_call_item.py +++ b/src/openai/types/responses/response_function_tool_call_item.py @@ -15,10 +15,10 @@ class ResponseFunctionToolCallItem(ResponseFunctionToolCall): [function calling guide](https://developers.openai.com/api/docs/guides/function-calling) for more information. """ - id: str # ty: ignore[invalid-mutable-override] + id: str # ty: ignore[incompatible-mutable-override] """The unique ID of the function tool call.""" - status: Literal["in_progress", "completed", "incomplete"] # ty: ignore[invalid-mutable-override] + status: Literal["in_progress", "completed", "incomplete"] # ty: ignore[incompatible-mutable-override] """The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are diff --git a/tests/lib/beta/agents/test_tools.py b/tests/lib/beta/agents/test_tools.py index b405d75efa..bf5717c90b 100644 --- a/tests/lib/beta/agents/test_tools.py +++ b/tests/lib/beta/agents/test_tools.py @@ -282,7 +282,7 @@ class InheritedCatalog(Catalog): pass class ShadowedCatalog(Catalog): - class Product(BaseModel): # ty: ignore[invalid-attribute-override] + class Product(BaseModel): # ty: ignore[incompatible-attribute-override] sku: int for callback in ( @@ -589,7 +589,7 @@ def lookup(self, product: Product) -> str: return product.name class Child(Catalog): - class Product(BaseModel): # ty: ignore[invalid-attribute-override] + class Product(BaseModel): # ty: ignore[incompatible-attribute-override] sku: int @wraps(Catalog.lookup) @@ -611,7 +611,7 @@ def lookup(self, product: Product) -> str: reserve = lookup class Child(Catalog): - class Product(BaseModel): # ty: ignore[invalid-attribute-override] + class Product(BaseModel): # ty: ignore[incompatible-attribute-override] sku: int alias = Catalog.lookup diff --git a/tests/lib/live/helpers.py b/tests/lib/live/helpers.py index a6f16fb83c..1e0ce6e1ce 100644 --- a/tests/lib/live/helpers.py +++ b/tests/lib/live/helpers.py @@ -12,7 +12,7 @@ def event(data: dict[str, Any]) -> ServerEvent: # Exercise the same unchecked construction used by the generated transport. - return cast(ServerEvent, construct_type_unchecked(value=data, type_=cast(Any, ServerEvent))) + return construct_type_unchecked(value=data, type_=cast(Any, ServerEvent)) def text( diff --git a/tests/lib/responses/test_commentary_parsing.py b/tests/lib/responses/test_commentary_parsing.py index 1b41130c8f..3c190cf8d2 100644 --- a/tests/lib/responses/test_commentary_parsing.py +++ b/tests/lib/responses/test_commentary_parsing.py @@ -305,7 +305,9 @@ async def test_phase_selection_preserves_content(sync: bool, streaming: bool, ph for actual, expected in zip(response.output, output, strict=True): assert actual.type == "message" assert actual.phase == expected["phase"] - for content, raw in zip(actual.content, expected["content"], strict=True): + expected_content = expected["content"] + assert isinstance(expected_content, list) + for content, raw in zip(actual.content, expected_content, strict=True): if content.type == "output_text": assert content.text == raw["text"] assert content.parsed == (Result(answer="final") if actual.phase == "final_answer" else None) diff --git a/tests/lib/responses/test_websocket_accumulator.py b/tests/lib/responses/test_websocket_accumulator.py index 62de71c1d0..f8b9a00a9e 100644 --- a/tests/lib/responses/test_websocket_accumulator.py +++ b/tests/lib/responses/test_websocket_accumulator.py @@ -2,7 +2,6 @@ import sys import json -from typing import cast import httpx2 import pytest @@ -10,7 +9,6 @@ from openai import OpenAI, AsyncOpenAI, omit from openai._compat import PYDANTIC_V1, model_copy -from openai.types.responses import ResponseStreamEvent from openai.lib.responses_websocket import ResponsesWebSocketError, ResponsesWebSocketAccumulator from openai.lib.streaming.responses import ResponseStreamState from openai.types.responses.responses_server_event import ResponseTextWsDelta @@ -110,11 +108,11 @@ def script(socket: ServerConnection) -> None: # cannot collect the same valid WS text event, then retain that # untouched typed event for the caller-fed helper. sse: ResponseStreamState[object] = ResponseStreamState(input_tools=omit, text_format=omit) - sse.handle_event(cast(ResponseStreamEvent, model_copy(initial, deep=True))) + sse.handle_event(model_copy(initial, deep=True)) first = await driver.call(lane, "recv") before = first.to_dict() with pytest.raises(RuntimeError, match="before receiving its output item"): - sse.handle_event(cast(ResponseStreamEvent, model_copy(first, deep=True))) + sse.handle_event(model_copy(first, deep=True)) acc.add_event(first) saved = acc.snapshot() assert saved.output_text == "pre" diff --git a/tests/lib/test_browser.py b/tests/lib/test_browser.py index 9d65137557..4d05211cc2 100644 --- a/tests/lib/test_browser.py +++ b/tests/lib/test_browser.py @@ -1417,8 +1417,8 @@ def find(self, _args: object) -> object: class AsyncIssuing(AsyncRichReads): @override # This test driver deliberately returns unvalidated observations. - async def find(self, args: object) -> object: # ty: ignore[invalid-method-override] - return self.driver.find(args) + async def find(self, _args: object) -> object: + return self.driver.find(_args) driver = Issuing(report) diff --git a/tests/lib/test_browser_registration.py b/tests/lib/test_browser_registration.py index 2c990d8068..d58fb98438 100644 --- a/tests/lib/test_browser_registration.py +++ b/tests/lib/test_browser_registration.py @@ -171,7 +171,7 @@ def obscure(action: object) -> object: }, ) ) - payload = json.loads(result["output"][0]["text"]) # ty: ignore[invalid-argument-type, invalid-key] + payload = json.loads(result["output"][0]["text"]) # ty: ignore[invalid-argument-type, invalid-typed-dict-key] assert payload["error"] == "Browser action failed." gc.collect() assert not [warning for warning in recwarn if "never awaited" in str(warning.message)] @@ -206,4 +206,4 @@ def state(self) -> BrowserState: return {"tabs": []} with pytest.raises(TypeError, match="abstract"): - MissingRead() # ty: ignore[call-non-callable] + MissingRead() # ty: ignore[abstract-class-instantiation] diff --git a/tests/lib/test_decisions_tool_runner.py b/tests/lib/test_decisions_tool_runner.py index 4c65091ae4..eedf9365ef 100644 --- a/tests/lib/test_decisions_tool_runner.py +++ b/tests/lib/test_decisions_tool_runner.py @@ -301,7 +301,7 @@ async def test_candidate_mapping_cannot_fabricate_missing_fields(lane: str) -> N class MissingID(dict[str, object]): @override # This adversarial mapping tests that validation does not trust get(). - def get(self, key: str, default: object = None) -> Any: # ty: ignore[invalid-method-override] + def get(self, key: str, default: object = None) -> Any: # ty: ignore[incompatible-method-override] reads.append(key) if key == "id": return "invented" diff --git a/tests/lib/test_old_api.py b/tests/lib/test_old_api.py index 52946de503..35c7c07b46 100644 --- a/tests/lib/test_old_api.py +++ b/tests/lib/test_old_api.py @@ -11,7 +11,7 @@ def test_basic_attribute_access_works() -> None: def test_helpful_error_is_raised() -> None: with pytest.raises(APIRemovedInV1): - openai.Completion.create() # ty: ignore[unresolved-attribute] + openai.Completion.create() # ty: ignore[missing-attribute] with pytest.raises(APIRemovedInV1): - openai.ChatCompletion.create() # ty: ignore[unresolved-attribute] + openai.ChatCompletion.create() # ty: ignore[missing-attribute] diff --git a/tests/lib/test_vertex_provider.py b/tests/lib/test_vertex_provider.py index cf9e4b1484..2e728d002a 100644 --- a/tests/lib/test_vertex_provider.py +++ b/tests/lib/test_vertex_provider.py @@ -604,5 +604,5 @@ def block_auth(_request: object, _method: str, _url: str, headers: dict[str, str finally: release.set() # Executor submission loses the non-streaming overload in ty. - assert first.result(timeout=2).id == "resp_test" # ty: ignore[unresolved-attribute] + assert first.result(timeout=2).id == "resp_test" # ty: ignore[missing-union-attribute] assert credentials.before_request.call_count == 1 diff --git a/tests/test_models.py b/tests/test_models.py index cd054bb0b5..508657fd50 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -349,7 +349,7 @@ class Model(BaseModel): assert m.foo.name == "3" else: assert isinstance(m.foo, Submodel1) - assert m.foo.name == 3 # ty: ignore[unresolved-attribute] + assert m.foo.name == 3 # ty: ignore[missing-attribute] def test_list_of_unions() -> None: diff --git a/tests/test_websocket_connection_options.py b/tests/test_websocket_connection_options.py index e7cc2bed6d..027347cad1 100644 --- a/tests/test_websocket_connection_options.py +++ b/tests/test_websocket_connection_options.py @@ -39,7 +39,7 @@ def native_options_contract( "max_size": None, "max_queue": (8, 2), } - invalid_sync: SyncWebSocketConnectionOptions = {"write_limit": 65536} # ty: ignore[invalid-key] + invalid_sync: SyncWebSocketConnectionOptions = {"write_limit": 65536} # ty: ignore[unknown-typed-dict-constructor-key] # The existing names still support async write limits on all supported # websocket versions, including through the generated public entrypoint. @@ -51,7 +51,7 @@ def native_options_contract( def beta_realtime_options_contract(client: OpenAI, async_client: AsyncOpenAI) -> None: client.beta.realtime.connect(model="test", websocket_connection_options={"max_size": 512}) - client.beta.realtime.connect(model="test", websocket_connection_options={"write_limit": 65536}) # ty: ignore[invalid-argument-type, invalid-key] + client.beta.realtime.connect(model="test", websocket_connection_options={"write_limit": 65536}) # ty: ignore[unknown-typed-dict-constructor-key, invalid-argument-type] async_client.beta.realtime.connect(model="test", websocket_connection_options={"write_limit": 65536}) def translation_options_contract( @@ -63,7 +63,7 @@ def translation_options_contract( invalid_sync = TranslationSession( client.realtime.translations, model="test", - websocket_connection_options={"write_limit": 65536}, # ty: ignore[invalid-argument-type, invalid-key] + websocket_connection_options={"write_limit": 65536}, # ty: ignore[unknown-typed-dict-constructor-key, invalid-argument-type] ) valid_async = AsyncTranslationSession( async_client.realtime.translations, model="test", websocket_connection_options={"write_limit": 65536} @@ -77,13 +77,13 @@ def synchronous_options_contract(client: OpenAI) -> None: client.live.connect(websocket_connection_options={"extensions": None, "subprotocols": None}) # Native sync clients do not implement write_limit on any supported version. - client.realtime.connect(model="test", websocket_connection_options={"write_limit": 65536}) # ty: ignore[invalid-argument-type, invalid-key] - client.responses.connect(websocket_connection_options={"write_limit": 65536}) # ty: ignore[invalid-argument-type, invalid-key] - client.beta.responses.connect(websocket_connection_options={"write_limit": 65536}) # ty: ignore[invalid-argument-type, invalid-key] - client.live.connect(websocket_connection_options={"write_limit": 65536}) # ty: ignore[invalid-argument-type, invalid-key] - client.live.sideband.connect(session_id="live_1", websocket_connection_options={"write_limit": 65536}) # ty: ignore[invalid-argument-type, invalid-key] - client.live.forks.connect(session_id="live_1", websocket_connection_options={"write_limit": 65536}) # ty: ignore[invalid-argument-type, invalid-key] - client.realtime.translations.connect("test", websocket_connection_options={"write_limit": 65536}) # ty: ignore[invalid-argument-type, invalid-key] + client.realtime.connect(model="test", websocket_connection_options={"write_limit": 65536}) # ty: ignore[unknown-typed-dict-constructor-key, invalid-argument-type] + client.responses.connect(websocket_connection_options={"write_limit": 65536}) # ty: ignore[unknown-typed-dict-constructor-key, invalid-argument-type] + client.beta.responses.connect(websocket_connection_options={"write_limit": 65536}) # ty: ignore[unknown-typed-dict-constructor-key, invalid-argument-type] + client.live.connect(websocket_connection_options={"write_limit": 65536}) # ty: ignore[unknown-typed-dict-constructor-key, invalid-argument-type] + client.live.sideband.connect(session_id="live_1", websocket_connection_options={"write_limit": 65536}) # ty: ignore[unknown-typed-dict-constructor-key, invalid-argument-type] + client.live.forks.connect(session_id="live_1", websocket_connection_options={"write_limit": 65536}) # ty: ignore[unknown-typed-dict-constructor-key, invalid-argument-type] + client.realtime.translations.connect("test", websocket_connection_options={"write_limit": 65536}) # ty: ignore[unknown-typed-dict-constructor-key, invalid-argument-type] def asynchronous_options_contract(client: AsyncOpenAI) -> None: original: types.WebSocketConnectionOptions = {"write_limit": 65536, "max_queue": 8}