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

Improved error message for yield statements when the yield type is … #6123

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

erictraut
Copy link
Collaborator

…a TypedDict or other type that requires bidirectional type inference. This addresses #6121.

…a TypedDict or other type that requires bidirectional type inference. This addresses #6121.
@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

operator (https://github.com/canonical/operator)
-     "Generator[tuple[str, ...], Unknown, Unknown]" is incompatible with "_NoticeGenerator"
-       Type parameter "_YieldT_co@Generator" is covariant, but "tuple[str, ...]" is not a subtype of "_Notice"
-         "tuple[str, ...]" is incompatible with "_Notice"
+     "tuple[str, ...]" is incompatible with "_Notice"
-           Tuple size mismatch; expected 3 but received indeterminate (reportGeneralTypeIssues)
+       Tuple size mismatch; expected 3 but received indeterminate (reportGeneralTypeIssues)

@erictraut erictraut merged commit d920ff6 into main Oct 11, 2023
11 checks passed
@erictraut erictraut deleted the issue6121 branch October 11, 2023 15:28
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