From 147dc38ec5963f594474d8d775312049d1f16902 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 15 Apr 2025 15:22:43 -0400 Subject: Fix super call in LowerFormatter I'm honestly not sure what the correct call is here, I guess what I had was Python 2 syntax? And Python 3 doesn't need arguments? Anyway this broke during one of the nixpkgs updates and this seems to have fixed it. --- Omni/Log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Omni') diff --git a/Omni/Log.py b/Omni/Log.py index 7e3fdd3..ee4a050 100644 --- a/Omni/Log.py +++ b/Omni/Log.py @@ -7,10 +7,10 @@ import typing class LowerFormatter(logging.Formatter): """A logging formatter that formats logs how I like.""" - def format(self: "LowerFormatter", record: typing.Any) -> typing.Any: + def format(self: "LowerFormatter", record: logging.LogRecord) -> typing.Any: """Use the format I like for logging.""" record.levelname = record.levelname.lower() - return super(logging.Formatter, self).format(record) # type: ignore[misc] + return super().format(record) def setup(level: int = logging.INFO) -> logging.Logger: -- cgit v1.2.3