FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Improve boltons dictutils stubs by costynus · Pull Request #15879 · python/typeshed · GitHub

Improve boltons dictutils stubs - #15879

Merged
srittau merged 2 commits into
python:mainfrom
costynus:improve-boltons-dictutils
Jun 11, 2026
Merged

Improve boltons dictutils stubs#15879
srittau merged 2 commits into
python:mainfrom
costynus:improve-boltons-dictutils

Conversation

costynus commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Improve OrderedMultiDict return types for counts, fromkeys, getlist, and inverted
  • Refine ManyToMany to match the runtime class more closely
  • Add missing/stricter annotations for ManyToMany methods and inverse mapping

Runtime reference

https://boltons.readthedocs.io/en/latest/_modules/boltons/dictutils.html

Tests

  • uv run python tests/runtests.py stubs/boltons
  • uv run pre-commit run --files stubs/boltons/boltons/dictutils.pyi
  • uv run python tests/runtests.py --run-stubtest stubs/boltons

This comment has been minimized.

srittau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks, looks mostly good. A few remarks below.

Comment thread stubs/boltons/boltons/dictutils.pyi Outdated
Comment thread stubs/boltons/boltons/dictutils.pyi Outdated

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

srittau merged commit 7e1dfd9 into python:main Jun 11, 2026
44 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL