Skip to content

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

Closed
@ilevkivskyi

Description

@ilevkivskyi

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions