Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Dec 17, 2024
1 parent c8a8423 commit 1310bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupyter_events/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
if parse(version_info) >= parse("3.1.0"):
from pythonjsonlogger.json import JsonFormatter
else:
from pythonjsonlogger.jsonlogger import JsonFormatter
from pythonjsonlogger.jsonlogger import JsonFormatter # type: ignore[attr-defined]

# Increment this version when the metadata included with each event
# changes.
Expand Down Expand Up @@ -179,7 +179,7 @@ def _handle_message_field(record: t.Any, **kwargs: t.Any) -> str:
del record["message"]
return json.dumps(record, **kwargs)

formatter = JsonFormatter( # type:ignore [no-untyped-call]
formatter = JsonFormatter(
json_serializer=_handle_message_field,
)
handler.setFormatter(formatter)
Expand Down

0 comments on commit 1310bd9

Please sign in to comment.