Skip to content

Make frozenset covariant #3808

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 3 commits into from
Mar 5, 2020
Merged

Make frozenset covariant #3808

merged 3 commits into from
Mar 5, 2020

Conversation

grievejia
Copy link
Contributor

@grievejia grievejia commented Mar 4, 2020

It used to be covariant until #1057.

I'm not sure why mypy still treats FrozenSet as covariant given this definition. Pyre treats it as invariant, which is not ideal and we'd like to fix that.

@grievejia grievejia marked this pull request as ready for review March 4, 2020 23:28
@JelleZijlstra JelleZijlstra merged commit 6a4044f into python:master Mar 5, 2020
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