Skip to content

Commit

Permalink
chore: drop some type ignores for colorlog (#888)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Nov 12, 2024
1 parent 2c43214 commit 7751763
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ repos:
files: ^nox/
args: []
additional_dependencies:
- colorlog
- dependency-groups>=1.2
- jinja2
- packaging
Expand Down
4 changes: 2 additions & 2 deletions nox/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def format(self, record: Any) -> str:
return super().format(record)


class NoxColoredFormatter(ColoredFormatter): # type: ignore[misc]
class NoxColoredFormatter(ColoredFormatter):
def __init__(
self,
datefmt: Any = None,
Expand All @@ -69,7 +69,7 @@ def __init__(
def format(self, record: Any) -> str:
if record.levelname == "OUTPUT":
return self._simple_fmt.format(record)
return super().format(record) # type: ignore[no-any-return]
return super().format(record)


class LoggerWithSuccessAndOutput(logging.getLoggerClass()): # type: ignore[misc]
Expand Down

0 comments on commit 7751763

Please sign in to comment.