Skip to content

Use lowercase set, frozenset and deque where possible #6346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 19, 2021

Conversation

AlexWaygood
Copy link
Member

This PR solely consists of changing typing.Set to set, typing.FrozenSet to frozenset, and typing.Deque to deque. It should hopefully have no mypy_primer diff at all.

@github-actions
Copy link
Contributor

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

@hauntsaninja hauntsaninja merged commit 5c8e68f into python:master Nov 19, 2021
@AlexWaygood AlexWaygood deleted the set-and-frozenset branch November 19, 2021 23:10
JukkaL added a commit to JukkaL/typeshed that referenced this pull request Dec 13, 2021
`collections.abc.Set` was accidentally replaced with `set` in python#6346.
The prior is an alias to `typing.AbstractSet`, instead of
`builtins.set`.

Since `collections.abc.Set` is easily confused with `typing.Set`, it
seems clearer to use `typing.AbstractSet` here.
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