Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 6, 2025
1 parent cbc476e commit 8e68efc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions daemon/globus_cw_daemon/cwlogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _add_emf_header(request, **kwargs):


class Event:
def __init__(self, timestamp, message, enforce_limit=True):
def __init__(self, timestamp, message, enforce_limit=True) -> None:
"""
Raise: InvalidMessage if message is too long
Raise: UnicodeDecodeError if message is not valid utf8
Expand All @@ -55,7 +55,7 @@ def __init__(self, timestamp, message, enforce_limit=True):


class _Batch:
def __init__(self):
def __init__(self) -> None:
self.nr_bytes = 0
self.records = []

Expand Down Expand Up @@ -97,7 +97,7 @@ def time_diff_exceeded(a, b):


class LogWriter:
def __init__(self, group_name, stream_name, aws_region=None):
def __init__(self, group_name, stream_name, aws_region=None) -> None:
"""
Create the @stream_name if it doesn't exist.
Raise: exception if boto can't connect.
Expand Down
2 changes: 1 addition & 1 deletion daemon/globus_cw_daemon/local_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class PrintKFormatter(logging.Formatter):
inspiration from the printk() kernel logging facilities.
"""

def __init__(self, *args, **kwargs):
def __init__(self, *args, **kwargs) -> None:
kwargs["fmt"] = (
"%(asctime)s.%(msecs)03d %(levelname)s %(process)d:%(thread)d "
"%(name)s: %(message)s"
Expand Down

0 comments on commit 8e68efc

Please sign in to comment.