diff --git a/pep-0557.rst b/pep-0557.rst index 743fee82c..1e8207070 100644 --- a/pep-0557.rst +++ b/pep-0557.rst @@ -189,12 +189,12 @@ The parameters to ``dataclass`` are: ``__hash__`` method is generated according to how cmp and frozen are set. - If ``cmp`` and ``hash`` are both true, Data Classes will generate a - ``__hash__`` for you. If ``cmp`` is true and ``frozen`` is false, + If ``cmp`` and ``frozen`` are both true, Data Classes will generate + a ``__hash__`` for you. If ``cmp`` is true and ``frozen`` is false, ``__hash__`` will be set to ``None``, marking it unhashable (which it is). If cmp is false, ``__hash__`` will be left untouched meaning the ``__hash__`` method of the superclass will be used (if - superclass is object, this means it will fall back to id-based + superclass is ``object``, this means it will fall back to id-based hashing). Although not recommended, you can force Data Classes to create a