Skip to content

Commit 80105a4

Browse files
author
Ubuntu
committed
Improve LSP override error message
1 parent d99e2c9 commit 80105a4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mypy/messages.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,9 @@ def signature_incompatible_with_supertype(
12931293
)
12941294
else:
12951295
self.note(override_str, context, offset=ALIGN_OFFSET + 2 * OFFSET, parent_error=error)
1296+
self.note(
1297+
"This violates the Liskov substitution principle", context, parent_error=error
1298+
)
12961299

12971300
def pretty_callable_or_overload(
12981301
self,

0 commit comments

Comments
 (0)