Skip to content

New semantic analyzer: bug in with-statement with multiple targets #6951

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

Closed
ilevkivskyi opened this issue Jun 7, 2019 · 0 comments · Fixed by #7094
Closed

New semantic analyzer: bug in with-statement with multiple targets #6951

ilevkivskyi opened this issue Jun 7, 2019 · 0 comments · Fixed by #7094
Assignees
Labels
bug mypy got something wrong priority-1-normal semantic-analyzer Problems that happen during semantic analysis

Comments

@ilevkivskyi
Copy link
Member

This test fails on new semantic analyzer:

[case testWithMultipleTargets]
a: A

class A:
    def __enter__(self) -> int: pass
    def __exit__(self, x, y, z): pass

with A() as x, A() as y:  # type: int, int
    pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong priority-1-normal semantic-analyzer Problems that happen during semantic analysis
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant