Skip to content

stdlib: add more buffer parameter types#15739

Merged
JelleZijlstra merged 2 commits intopython:mainfrom
JelleZijlstra:more-buffers
May 9, 2026
Merged

stdlib: add more buffer parameter types#15739
JelleZijlstra merged 2 commits intopython:mainfrom
JelleZijlstra:more-buffers

Conversation

@JelleZijlstra
Copy link
Copy Markdown
Member

I made a tool to use Argument Clinic parameter types and compare them
against stub annotations. Surprisingly it found only a few issues so far.

In these four cases we had a concrete type as an annotation, but the runtime
accepts any appropriate buffer.

I made a tool to use Argument Clinic parameter types and compare them
against stub annotations. Surprisingly it found only a few issues so far.

In these four cases we had a concrete type as an annotation, but the runtime
accepts any appropriate buffer.
@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

Diff from mypy_primer, showing the effect of this PR on open source code:

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/computation/ops.py:328: error: Need type annotation for "_binary_ops_dict" (hint: "_binary_ops_dict: dict[<type>, <type>] = ...")  [var-annotated]

@JelleZijlstra JelleZijlstra merged commit 2800f39 into python:main May 9, 2026
56 checks passed
@JelleZijlstra JelleZijlstra deleted the more-buffers branch May 9, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants