Skip to content

Commit

Permalink
[lint] resolve warnings for updated ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Jun 4, 2024
1 parent 1263277 commit fa2df38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ lint.ignore = [
"E741", # ambiguous-variable-name
"E402", # module-import-not-at-top-of-file
"S101", # use of assert
"PERF203", # try-except within loop
"PLC0415", # import-outside-top-level
"PLR6301", # no-self-use
"PLR0904", # too-many-public-methods
Expand Down
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 fa2df38

Please sign in to comment.