Skip to content

chore(deps-dev): bump mypy from 1.17 to 2.3.1 - #3663

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/mypy-2.3.0
Closed

chore(deps-dev): bump mypy from 1.17 to 2.3.1#3663
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/mypy-2.3.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 19, 2026

Copy link
Copy Markdown
Contributor

Bumps mypy from 1.17 to 2.3.1.

Changelog

Sourced from mypy's changelog.

Mypy 2.3.1

  • Fix mypyc crash on double yielding Iterators (Daniël van Noord, PR 21826)
  • Fix mypyc default_factory for inherited dataclass (Daniël van Noord, PR 21785)
  • Clear mypyc coroutine env on coroutine completion (Piotr Sawicki, PR 21734)
  • Fix crash when unpacking return value from overload (Shantanu, PR 21830)

Acknowledgements

Thanks to all mypy contributors who contributed to this release:

  • Agriya Khetarpal
  • Ethan Sarp
  • Ivan Levkivskyi
  • Jingchen Ye
  • Jukka Lehtosalo
  • Piotr Sawicki
  • Shantanu
  • Tom Bannink
  • Viktor Szépe
  • ygale

I'd also like to thank my employer, Dropbox, for supporting mypy development.

Mypy 2.2

We've just uploaded mypy 2.2.0 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:

python3 -m pip install -U mypy

You can read the full documentation for this release on Read the Docs.

Support for Closed TypedDicts (PEP 728)

Mypy now supports closed TypedDicts as specified in PEP 728. A closed TypedDict cannot have extra keys beyond those explicitly defined. This allows the type checker to determine that certain operations are safe when they otherwise wouldn't be due to the potential presence of unknown keys.

You can use the closed keyword argument with TypedDict:

HasName = TypedDict("HasName", {"name": str})
HasOnlyName = TypedDict("HasOnlyName", {"name": str}, closed=True)
Movie = TypedDict("Movie", {"name": str, "year": int})
movie: Movie = {"name": "Nimona", "year": 2023}
has_name: HasName = movie  # OK: HasName is open (default)
has_only_name: HasOnlyName = movie  # Error: HasOnlyName is closed and Movie has extra "year" key
</tr></table>

... (truncated)

Commits
  • d642c44 Bump version to 2.3.1
  • a392429 [mypyc] Fix crash on double yielding Iterators (#21826)
  • 4843e77 [mypyc] Fix default_factory for inherited dataclass (#21785)
  • 14f5df9 [mypyc] Clear coroutine env on coroutine completion (#21734)
  • 6dfa06d Fix crash when unpacking return value from overload (#21830)
  • a385746 Bump version to 2.3.1+dev
  • 8aabf84 Drop +dev from version
  • 4d8ad2a Update changelog for 2.3 release (#21728)
  • 2c21546 [mypyc] Update documentation of race conditions under free threading (#21726)
  • a9f62a3 [mypyc] Make attribute access memory safe on free-threaded builds (#21705)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Aug 19, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner August 19, 2026 14:54
@openai-sdks

openai-sdks Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

OkTest Summary

237/237 SDK tests passed in 11.098s for Python SDK PR #3663.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 207ms
tests/chat-completions-create.test.ts ✅ Passed 244ms
tests/chat-completions-stream.test.ts ✅ Passed 122ms
tests/files-content-binary.test.ts ✅ Passed 225ms
tests/files-create-multipart.test.ts ✅ Passed 230ms
tests/files-list-pagination.test.ts ✅ Passed 150ms
tests/initialize-config.test.ts ✅ Passed 228ms
tests/instance-isolation.test.ts ✅ Passed 185ms
tests/models-list.test.ts ✅ Passed 209ms
tests/responses-background-lifecycle.test.ts ✅ Passed 222ms
tests/responses-body-method-errors.test.ts ✅ Passed 318ms
tests/responses-cancel-timeout.test.ts ✅ Passed 201ms
tests/responses-cancel.test.ts ✅ Passed 190ms
tests/responses-compact-retries.test.ts ✅ Passed 307ms
tests/responses-compact.test.ts ✅ Passed 272ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 143ms
tests/responses-create-advanced.test.ts ✅ Passed 227ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.216s
tests/responses-create-errors.test.ts ✅ Passed 175ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 292ms
tests/responses-create-retries.test.ts ✅ Passed 314ms
tests/responses-create-stream-failures.test.ts ✅ Passed 122ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 232ms
tests/responses-create-stream-wire.test.ts ✅ Passed 3.627s
tests/responses-create-stream.test.ts ✅ Passed 303ms
tests/responses-create-terminal-states.test.ts ✅ Passed 274ms
tests/responses-create-timeout.test.ts ✅ Passed 207ms
tests/responses-create.test.ts ✅ Passed 278ms
tests/responses-delete.test.ts ✅ Passed 262ms
tests/responses-input-items-errors.test.ts ✅ Passed 416ms
tests/responses-input-items-list.test.ts ✅ Passed 293ms
tests/responses-input-items-options.test.ts ✅ Passed 264ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 230ms
tests/responses-input-tokens-count.test.ts ✅ Passed 247ms
tests/responses-malformed-inputs.test.ts ✅ Passed 2.715s
tests/responses-not-found-errors.test.ts ✅ Passed 247ms
tests/responses-parse.test.ts ✅ Passed 363ms
tests/responses-retrieve-retries.test.ts ✅ Passed 246ms
tests/responses-retrieve.test.ts ✅ Passed 196ms
tests/responses-stored-method-errors.test.ts ✅ Passed 551ms
tests/retry-behavior.test.ts ✅ Passed 3.227s
tests/sdk-error-shape.test.ts ✅ Passed 295ms

View OkTest run #33028791029

SDK merge (2826c59e6d2d) · head (2dbb76793cec) · base (79c588bb3a40) · OkTest (2b1bdfd25e98)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 58bee281c3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread uv.lock Outdated
[[package]]
name = "openai"
version = "3.3.0" # x-release-please-version
version = "3.3.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore the release-please version marker

At the next automated release, release-please-config.json lists uv.lock under extra-files, and the updater relies on this marker to locate the SDK version (as demonstrated by prior release commits). Removing it leaves the locked openai package version unchanged when pyproject.toml is bumped, so locked installs and CI become stale and the release is blocked; retain # x-release-please-version on this line.

Useful? React with 👍 / 👎.

@dependabot
dependabot Bot force-pushed the dependabot/uv/mypy-2.3.0 branch 4 times, most recently from c2a22fc to a5d0ca2 Compare August 19, 2026 16:32
@dependabot dependabot Bot changed the title build(deps-dev): bump mypy from 1.17 to 2.3.0 chore(deps-dev): bump mypy from 1.17 to 2.3.1 Aug 26, 2026
@dependabot
dependabot Bot force-pushed the dependabot/uv/mypy-2.3.0 branch from a5d0ca2 to 9ab91d9 Compare August 26, 2026 21:50
@github-actions

github-actions Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Castiron custom code

✅ No new custom-code files detected.

34 mixed files remain; 0 existing customizations changed.

Compared 79c588bb3a402dbb76793cec. Generated baselines verified.

34 existing customizations unchanged
  • api.md
  • scripts/castiron/README.md
  • scripts/castiron/custom_code_report.py
  • scripts/castiron/test_custom_code_report.py
  • src/openai/init.py
  • src/openai/_client.py
  • src/openai/resources/audio/transcriptions.py
  • src/openai/resources/audio/translations.py
  • src/openai/resources/beta/beta.py
  • src/openai/resources/beta/responses/responses.py
  • src/openai/resources/beta/threads/runs/runs.py
  • src/openai/resources/beta/threads/threads.py
  • src/openai/resources/chat/completions/completions.py
  • src/openai/resources/embeddings.py
  • src/openai/resources/files.py
  • src/openai/resources/realtime/realtime.py
  • src/openai/resources/responses/responses.py
  • src/openai/resources/uploads/uploads.py
  • src/openai/resources/vector_stores/file_batches.py
  • src/openai/resources/vector_stores/files.py
  • src/openai/resources/videos.py
  • src/openai/resources/webhooks/init.py
  • src/openai/resources/webhooks/webhooks.py
  • src/openai/types/chat/init.py
  • src/openai/types/chat/chat_completion_message_tool_call.py
  • src/openai/types/fine_tuning/fine_tuning_job_integration.py
  • src/openai/types/responses/init.py
  • src/openai/types/responses/response.py
  • src/openai/types/responses/response_function_web_search.py
  • src/openai/types/responses/response_function_web_search_param.py
  • src/openai/types/responses/tool.py
  • src/openai/types/responses/tool_param.py
  • src/openai/types/webhooks/init.py
  • tests/api_resources/test_videos.py

A changed generated baseline means this report cannot reliably identify which handwritten lines changed.

Inspect the custom-code diff

Download the exact patch produced by this run (requires repository access):

gh run download 33028814361 --repo openai/openai-python \
  --name castiron-custom-code-33028814361-1 --dir /tmp/castiron-custom-code-33028814361-1
git apply --stat /tmp/castiron-custom-code-33028814361-1/custom-code.patch
cat /tmp/castiron-custom-code-33028814361-1/custom-code.patch

Or reproduce it from an SDK checkout containing the vendored reporter:

git fetch --no-tags origin 79c588bb3a40fb698c65e35c94ad96c0b44c30d4 2dbb76793cecf597fc9bab9915db6b8a1a4d67ea
python3 scripts/castiron/custom_code_report.py report \
  --base 79c588bb3a40fb698c65e35c94ad96c0b44c30d4 \
  --head 2dbb76793cecf597fc9bab9915db6b8a1a4d67ea --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-2dbb76793cec
cat /tmp/castiron-custom-code-2dbb76793cec/custom-code.patch

This is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR.

Full report and patch

Bumps [mypy](https://github.com/python/mypy) from 1.17 to 2.3.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.17.0...v2.3.1)

---
updated-dependencies:
- dependency-name: mypy
  dependency-version: 2.3.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/uv/mypy-2.3.0 branch from 9ab91d9 to 2dbb767 Compare August 27, 2026 01:02
@dependabot @github

dependabot Bot commented on behalf of github Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #3747.

@dependabot dependabot Bot closed this Aug 27, 2026
@dependabot
dependabot Bot deleted the dependabot/uv/mypy-2.3.0 branch August 27, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants