Fix dict view isdisjoint parameter types by subotac · Pull Request #16128 · python/typeshed · GitHub
Skip to content

Fix dict view isdisjoint parameter types - #16128

Open
subotac wants to merge 4 commits into
python:mainfrom
subotac:fix-dict-view-isdisjoint
Open

Fix dict view isdisjoint parameter types#16128
subotac wants to merge 4 commits 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

This comment has been minimized.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This doesn't need a test, it's a straightforward annotation.

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

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

2 participants