Skip to content

Commit

Permalink
Fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Jan 29, 2024
1 parent c00cc88 commit 430a7ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/wrapt/test_wrapt.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ def _function(*args, **kwargs):
self.assertEqual(result, (_args, _kwargs))

# Run tests
with unittest.TestCase().assertRaisesRegex(SystemExit, 5):
with unittest.TestCase().assertRaisesRegex(SystemExit, "5"):
unittest.main()
4 changes: 2 additions & 2 deletions src/py/pyodide/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ def __init__(
self.return_mode = return_mode
self.quiet_trailing_semicolon = quiet_trailing_semicolon

def __call__(
def __call__( # type: ignore[override]
self, source: str, filename: str, symbol: str, *, incomplete_input: bool = True
) -> CodeRunner: # type: ignore[override]
) -> CodeRunner:
return_mode = self.return_mode
try:
if self.quiet_trailing_semicolon and should_quiet(source):
Expand Down

0 comments on commit 430a7ee

Please sign in to comment.