Skip to content

Commit

Permalink
run pyupgrade on itself
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Jul 28, 2024
1 parent cc45199 commit d17f461
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyupgrade/_plugins/legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(self) -> None:
self.yield_offsets: set[Offset] = set()

@contextlib.contextmanager
def _scope(self, node: ast.AST) -> Generator[None, None, None]:
def _scope(self, node: ast.AST) -> Generator[None]:
self._scopes.append(Scope(node))
try:
yield
Expand Down
2 changes: 1 addition & 1 deletion pyupgrade/_plugins/percent_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _must_match(regex: Pattern[str], string: str, pos: int) -> Match[str]:


def _parse_percent_format(s: str) -> tuple[PercentFormat, ...]:
def _parse_inner() -> Generator[PercentFormat, None, None]:
def _parse_inner() -> Generator[PercentFormat]:
string_start = 0
string_end = 0
in_fmt = False
Expand Down

0 comments on commit d17f461

Please sign in to comment.