Skip to content
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

Fix isinstance covariance for parametric types #108

Merged
merged 5 commits into from
Oct 7, 2023

Conversation

wesselb
Copy link
Member

@wesselb wesselb commented Sep 21, 2023

Fixes #105 and #107

See here for a description of the problem and the implemented solution.

CC @PhilipVinc, @femtomc, and @mfinzi

@wesselb
Copy link
Member Author

wesselb commented Sep 22, 2023

@femtomc, would you be able to check if this PR fixes the covariance issues you're experiencing?

@coveralls
Copy link

coveralls commented Sep 23, 2023

Pull Request Test Coverage Report for Build 6282646284

  • 7 of 7 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 6282511977: 0.0%
Covered Lines: 942
Relevant Lines: 942

💛 - Coveralls

@wesselb
Copy link
Member Author

wesselb commented Oct 7, 2023

I’m merging this since it’s been open for a while. Please comment here or open an issue if you experience any problems!

@wesselb wesselb merged commit 4e3ff34 into master Oct 7, 2023
12 checks passed
@wesselb wesselb deleted the wbruinsma/fix-isinstance-covariance branch October 7, 2023 11:59
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.

parametric conflicts with certain usages of customized __init_subclass__
2 participants