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

Add missing return type to generic_syntax_infer_variance.py #1871

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

migeed-z
Copy link
Contributor

Since the spec does not specify that inferring the return type is required, we add a missing return annotation to this test case.

The reason for this is that if an inference algorithm depends on the return annotation, it will fail and be incorrectly non-conformant.

Copy link

cpython-cla-bot bot commented Oct 24, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

Copy link
Collaborator

@erictraut erictraut left a comment

Choose a reason for hiding this comment

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

Thanks for making the changes. LGTM!

@erictraut erictraut merged commit 02b385a into python:main Oct 24, 2024
4 checks passed
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