Skip to content

Commit

Permalink
[lint] fix warnings
Browse files Browse the repository at this point in the history
`PGH001` is a redirect to `S307`. Replace with `S307`.
  • Loading branch information
dnicolodi committed May 27, 2024
1 parent 1263277 commit b6a115b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tatsu/contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ def _constant(self, literal):
except (ValueError, SyntaxError):
if '\n' in literal:
literal = trim(literal)
literal = eval( # noqa: S307, PGH001
literal = eval( # noqa: S307
f'{"f" + repr(literal)}', {}, self.ast,
)
self._append_cst(literal)
Expand Down

0 comments on commit b6a115b

Please sign in to comment.