From bdfdc95167eed0cf065ef572ea663db9e8577ec3 Mon Sep 17 00:00:00 2001 From: Sean Grady Date: Fri, 28 May 2021 13:57:18 -0700 Subject: [PATCH] Fix dataclass comment typo _eq__ -> __eq__ (GH-26433) (cherry picked from commit 7e6f2375698036d62464c238059ef2073755fdaf) Co-authored-by: Sean Grady --- Lib/dataclasses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py index da7cb743b564730..c98e74d4ff9cc2b 100644 --- a/Lib/dataclasses.py +++ b/Lib/dataclasses.py @@ -944,7 +944,7 @@ def _process_class(cls, init, repr, eq, order, unsafe_hash, frozen): _set_new_attribute(cls, '__repr__', _repr_fn(flds, globals)) if eq: - # Create _eq__ method. There's no need for a __ne__ method, + # Create __eq__ method. There's no need for a __ne__ method, # since python will call __eq__ and negate it. flds = [f for f in field_list if f.compare] self_tuple = _tuple_str('self', flds)