Skip to content

Commit 0827c65

Browse files
committed
op fix
1 parent 94ef589 commit 0827c65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/dataclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def _tuple_compare_expand(op, fields):
442442
)
443443
yield f' return self.{fields[-1].name} {op} other.{fields[-1].name}'
444444
else:
445-
yield ' return True'
445+
yield f' return {op.endswith("=")}'
446446

447447

448448
class _FuncBuilder:

0 commit comments

Comments
 (0)