Skip to content

Fix dict view isdisjoint parameter types - #16128

Open
subotac wants to merge 1 commit into
python:mainfrom
subotac:fix-dict-view-isdisjoint
Open

Fix dict view isdisjoint parameter types#16128
subotac wants to merge 1 commit into
python:mainfrom
subotac:fix-dict-view-isdisjoint

Conversation

@subotac

@subotac subotac commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Fixes #15888.

dict_keys.isdisjoint() and dict_items.isdisjoint() accept arbitrary iterables at runtime. Widen the Python 3.13+ concrete view overrides to Iterable[object] and add regression coverage withh
heterogeneous element types

@github-actions

Copy link
Copy Markdown
Contributor

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.

type annotation for {dict_keys,dict_items}.is_disjoint argument is too narrow

1 participant