Skip to content

Commit d851922

Browse files
committed
correct context for --pretty
1 parent 593d4e0 commit d851922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3284,7 +3284,7 @@ def check_redundant_annotation(self, s: AssignmentStmt) -> None:
32843284
if cls and (dataclasses_plugin.is_processed_dataclass(cls) or cls.is_named_tuple):
32853285
return
32863286

3287-
self.msg.redundant_annotation(s.type, s.rvalue)
3287+
self.msg.redundant_annotation(s.type, s.type)
32883288

32893289
def check_assignment(
32903290
self,

0 commit comments

Comments
 (0)