Skip to content

Commit 23fe049

Browse files
committed
chore(mypy): Add typings for log
1 parent f0e637d commit 23fe049

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tmuxp/log.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ def template(
115115

116116
return levelname + asctime + name
117117

118-
def __init__(self, color: bool = True, *args, **kwargs) -> None:
119-
logging.Formatter.__init__(self, *args, **kwargs)
118+
def __init__(self, color: bool = True, **kwargs: t.Any) -> None:
119+
logging.Formatter.__init__(self, **kwargs)
120120

121121
def format(self, record: logging.LogRecord) -> str:
122122
try:
@@ -125,7 +125,7 @@ def format(self, record: logging.LogRecord) -> str:
125125
record.message = f"Bad message ({e!r}): {record.__dict__!r}"
126126

127127
date_format = "%H:%m:%S"
128-
formatting = self.converter(record.created) # type:ignore
128+
formatting = self.converter(record.created)
129129
record.asctime = time.strftime(date_format, formatting)
130130

131131
prefix = self.template(record) % record.__dict__

0 commit comments

Comments
 (0)