]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix dataclass comment typo _eq__ -> __eq__ (GH-26433)
authorSean Grady <vedicmonk@gmail.com>
Fri, 28 May 2021 20:57:18 +0000 (13:57 -0700)
committerGitHub <noreply@github.com>
Fri, 28 May 2021 20:57:18 +0000 (16:57 -0400)
Lib/dataclasses.py

index cbba320e01a54d6919f95f99a3aa08daddb00149..79739976d3d29b4053a2d61968773025642ad967 100644 (file)
@@ -1038,7 +1038,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)