Skip to content

Commit

Permalink
Merge branch '5.0.x' into 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Jul 23, 2022
2 parents f45dc5e + 94f62e7 commit afac558
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
'flake8-comprehensions',
'flake8-bugbear',
'isort',
'mypy>=0.950',
'mypy>=0.971',
'sphinx-lint',
'docutils-stubs',
"types-typed-ast",
Expand Down
4 changes: 2 additions & 2 deletions sphinx/util/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def convert_serializable(records: List[logging.LogRecord]) -> None:

location = getattr(r, 'location', None)
if isinstance(location, nodes.Node):
r.location = get_node_location(location) # type: ignore
r.location = get_node_location(location)


class SphinxLogRecord(logging.LogRecord):
Expand Down Expand Up @@ -432,7 +432,7 @@ class DisableWarningIsErrorFilter(logging.Filter):
"""Disable WarningIsErrorFilter if this filter installed."""

def filter(self, record: logging.LogRecord) -> bool:
record.skip_warningsiserror = True # type: ignore
record.skip_warningsiserror = True
return True


Expand Down

0 comments on commit afac558

Please sign in to comment.