Skip to content

Commit ca09e80

Browse files
committed
refactor(logging): Remove protocol for now, to avoid typing-extensions
Strict mypy may force us to need this
1 parent 8ef49a7 commit ca09e80

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

tmuxp/log.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,6 @@ def set_style(
5757
return prefix + message + suffix
5858

5959

60-
class LogTemplateFn(t.Protocol):
61-
def template(
62-
self,
63-
record: logging.LogRecord,
64-
stylized: t.Optional[bool],
65-
**kwargs: t.Any,
66-
) -> str:
67-
...
68-
69-
7060
def default_log_template(
7161
self: t.Type[logging.Formatter],
7262
record: logging.LogRecord,
@@ -119,7 +109,7 @@ def default_log_template(
119109
return levelname + asctime + name
120110

121111

122-
class LogFormatter(logging.Formatter, LogTemplateFn):
112+
class LogFormatter(logging.Formatter):
123113
template = default_log_template
124114

125115
def __init__(self, color=True, *args, **kwargs):

0 commit comments

Comments
 (0)