diff options
author | Sean Grady <vedicmonk@gmail.com> | 2021-05-28 20:57:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-28 20:57:18 (GMT) |
commit | 7e6f2375698036d62464c238059ef2073755fdaf (patch) | |
tree | 33cbcb0b20d81f3efaa224620bf47c7bda5cff09 /Lib/dataclasses.py | |
parent | 2138b2edaf5acb3b9c162a9ba620923e286239a8 (diff) | |
download | cpython-7e6f2375698036d62464c238059ef2073755fdaf.zip cpython-7e6f2375698036d62464c238059ef2073755fdaf.tar.gz cpython-7e6f2375698036d62464c238059ef2073755fdaf.tar.bz2 |
Fix dataclass comment typo _eq__ -> __eq__ (GH-26433)
Diffstat (limited to 'Lib/dataclasses.py')
-rw-r--r-- | Lib/dataclasses.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py index cbba320..7973997 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) |