Fix typo.

This commit is contained in:
Eric V. Smith 2017-09-11 17:57:26 -04:00
parent 8fba9ebb22
commit 11f422bdc7
1 changed files with 3 additions and 3 deletions

View File

@ -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