File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -270,10 +270,11 @@ Module contents
270
270
string returned by the generated :meth: `~object.__repr__ ` method.
271
271
272
272
- *hash *: This can be a bool or ``None ``. If true, this field is
273
- included in the generated :meth: `~object.__hash__ ` method. If ``None `` (the
274
- default), use the value of *compare *: this would normally be
275
- the expected behavior. A field should be considered in the hash
276
- if it's used for comparisons. Setting this value to anything
273
+ included in the generated :meth: `~object.__hash__ ` method. If false,
274
+ this field is excluded from the generated :meth: `~object.__hash__ `.
275
+ If ``None `` (the default), use the value of *compare *: this would
276
+ normally be the expected behavior, since a field should be included
277
+ in the hash if it's used for comparisons. Setting this value to anything
277
278
other than ``None `` is discouraged.
278
279
279
280
One possible reason to set ``hash=False `` but ``compare=True ``
You can’t perform that action at this time.
0 commit comments