Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mypyc/irbuild/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def bind_as_pattern(self, value: Value, new_block: bool = False) -> None:
self.builder.goto(self.code_block)

@contextmanager
def enter_subpattern(self, subject: Value) -> Generator[None, None, None]:
def enter_subpattern(self, subject: Value) -> Generator[None]:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

#18382 also adds `from future import annotations. Including it here would just create a merge conflict and isn't strictly necessary anyway.

old_subject = self.subject
self.subject = subject
yield
Expand Down
Loading