Merge branch '5.0.x' into 5.x

This commit is contained in:
Takeshi KOMIYA
2022-07-23 15:17:08 +09:00
2 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ extras_require = {
'flake8-comprehensions',
'flake8-bugbear',
'isort',
'mypy>=0.950',
'mypy>=0.971',
'sphinx-lint',
'docutils-stubs',
"types-typed-ast",

View File

@@ -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):
@@ -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