Skip to content

Commit 5b89c39

Browse files
committed
Fix mypy violations (with mypy-0.971)
1 parent 213c29b commit 5b89c39

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
'lint': [
4242
'flake8>=3.5.0',
4343
'isort',
44-
'mypy>=0.950',
44+
'mypy>=0.971',
4545
'docutils-stubs',
4646
"types-typed-ast",
4747
"types-requests",

sphinx/util/logging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def convert_serializable(records: List[logging.LogRecord]) -> None:
7777

7878
location = getattr(r, 'location', None)
7979
if isinstance(location, nodes.Node):
80-
r.location = get_node_location(location) # type: ignore
80+
r.location = get_node_location(location)
8181

8282

8383
class SphinxLogRecord(logging.LogRecord):
@@ -431,7 +431,7 @@ class DisableWarningIsErrorFilter(logging.Filter):
431431
"""Disable WarningIsErrorFilter if this filter installed."""
432432

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

437437

0 commit comments

Comments
 (0)