Skip to content

Improve boltons dictutils stubs#15879

Open
costynus wants to merge 1 commit into
python:mainfrom
costynus:improve-boltons-dictutils
Open

Improve boltons dictutils stubs#15879
costynus wants to merge 1 commit into
python:mainfrom
costynus:improve-boltons-dictutils

Conversation

@costynus
Copy link
Copy Markdown

@costynus costynus commented Jun 7, 2026

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2026

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

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.

1 participant