Skip to content

Accept integer-like arguments and optional bounds in UserString - #16519

Merged
srittau merged 1 commit into
python:mainfrom
xiehuanyi:fix/userstring-index-protocol-20261013
Oct 13, 2026
Merged

srittau merged 1 commit into
python:mainfrom
xiehuanyi:fix/userstring-index-protocol-20261013

Conversation

@xiehuanyi

Copy link
Copy Markdown
Contributor

Accept index protocol objects and optional search bounds in UserString methods, which delegate directly to the underlying string.

Agent: OpenAI Codex.

Copilot AI balanced review requested due to automatic review settings October 13, 2026 18:08

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

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

scipy-stubs (https://github.com/scipy/scipy-stubs)
- tests/misc/test_submodules_empty.pyi:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

@srittau
srittau merged commit 6dcbc4c into python:main Oct 13, 2026
88 checks passed
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.

3 participants