Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
correct context for --pretty
  • Loading branch information
grayjk committed Nov 15, 2025
commit d851922cf9bfcb68487ad81a5d042a7e021a4a79
2 changes: 1 addition & 1 deletion mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3284,7 +3284,7 @@ def check_redundant_annotation(self, s: AssignmentStmt) -> None:
if cls and (dataclasses_plugin.is_processed_dataclass(cls) or cls.is_named_tuple):
return

self.msg.redundant_annotation(s.type, s.rvalue)
self.msg.redundant_annotation(s.type, s.type)

def check_assignment(
self,
Expand Down