Skip to content

Commit

Permalink
fmt code
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman committed Dec 7, 2022
1 parent 0705c94 commit be00f57
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion aiologger/handlers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class Handler(Filterer):
the 'raw' message as determined by record.message is logged.
"""

def __init__(self, level: LogLevel = LogLevel.NOTSET, formatter: Formatter = None) -> None:
def __init__(
self, level: LogLevel = LogLevel.NOTSET, formatter: Formatter = None
) -> None:
"""
Initializes the instance - basically setting the formatter to None
and the filter list to empty.
Expand Down
10 changes: 8 additions & 2 deletions aiologger/handlers/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ class AsyncFileHandler(Handler):
terminator = "\n"

def __init__(
self, filename: str, mode: str = "a", encoding: str = None, formatter: Formatter = None
self,
filename: str,
mode: str = "a",
encoding: str = None,
formatter: Formatter = None,
) -> None:
super().__init__(formatter=formatter)
filename = os.fspath(filename)
Expand Down Expand Up @@ -230,7 +234,9 @@ def __init__(
at_time: datetime.time = None,
formatter: Formatter = None,
) -> None:
super().__init__(filename=filename, mode="a", encoding=encoding, formatter=formatter)
super().__init__(
filename=filename, mode="a", encoding=encoding, formatter=formatter
)
self.when = when.upper()
self.backup_count = backup_count
self.utc = utc
Expand Down

0 comments on commit be00f57

Please sign in to comment.