Skip to content

Commit 14e165d

Browse files
mop up remaining severities
1 parent af86853 commit 14e165d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

mypy/messages.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
ErrorWatcher,
3030
IterationDependentErrors,
3131
IterationErrorWatcher,
32+
Severity,
3233
)
3334
from mypy.nodes import (
3435
ARG_NAMED,
@@ -233,7 +234,7 @@ def report(
233234
self,
234235
msg: str,
235236
context: Context | None,
236-
severity: str,
237+
severity: Severity,
237238
*,
238239
code: ErrorCode | None = None,
239240
file: str | None = None,

mypy/semanal_classprop.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from typing import Final
99

10-
from mypy.errors import Errors
10+
from mypy.errors import Errors, Severity
1111
from mypy.nodes import (
1212
IMPLICITLY_ABSTRACT,
1313
IS_ABSTRACT,
@@ -102,7 +102,7 @@ def calculate_class_abstract_status(typ: TypeInfo, is_stub_file: bool, errors: E
102102
return
103103
if abstract and not abstract_in_this_class:
104104

105-
def report(message: str, severity: str) -> None:
105+
def report(message: str, severity: Severity) -> None:
106106
errors.report(typ.line, typ.column, message, severity=severity)
107107

108108
attrs = ", ".join(f'"{attr}"' for attr, _ in sorted(abstract))

0 commit comments

Comments
 (0)