summaryrefslogtreecommitdiff
path: root/Lib/dataclasses.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-28 18:07:27 -0700
committerGitHub <noreply@github.com>2021-05-28 21:07:27 -0400
commit1757ddd227d2aaee592162812cf735b1ef400622 (patch)
tree787ad7ae9b5be50c58c339f22d2603ea3346d051 /Lib/dataclasses.py
parenta7aa105702998fea7f6671b7358144146e4bc47f (diff)
downloadcpython-git-1757ddd227d2aaee592162812cf735b1ef400622.tar.gz
Fix dataclass comment typo _eq__ -> __eq__ (GH-26433) (GH-26436)
(cherry picked from commit 7e6f2375698036d62464c238059ef2073755fdaf) Co-authored-by: Sean Grady <vedicmonk@gmail.com> Co-authored-by: Sean Grady <vedicmonk@gmail.com>
Diffstat (limited to 'Lib/dataclasses.py')
-rw-r--r--Lib/dataclasses.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py
index cbba320e01..79739976d3 100644
--- a/Lib/dataclasses.py
+++ b/Lib/dataclasses.py
@@ -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)