Skip to content

SubconParsedType and SubconBuildTypes can and should be invariant - #49

Open
robin523790 wants to merge 1 commit into
timrid:mainfrom
robin523790:bugfix/make-subcontypes-invariant
Open

SubconParsedType and SubconBuildTypes can and should be invariant#49
robin523790 wants to merge 1 commit into
timrid:mainfrom
robin523790:bugfix/make-subcontypes-invariant

Conversation

@robin523790

Copy link
Copy Markdown

SubconParsedType and SubconBuildTypes can and should be invariant.

@timrid

timrid commented Aug 14, 2026

Copy link
Copy Markdown
Owner

The Question is why should it be invariant? Off the top of my head, I can't recall the exact reasons anymore, but there were reasons why that was added in #1.

But what I'm wondering is why the tests test_buildtypes_contravariance and test_parsetype_covariance don't fail when we simply remove the covariance and contravariance.

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.

3 participants