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 @@ -277,10 +277,11 @@ Module contents
277
277
string returned by the generated :meth: `~object.__repr__ ` method.
278
278
279
279
- *hash *: This can be a bool or ``None ``. If true, this field is
280
- included in the generated :meth: `~object.__hash__ ` method. If ``None `` (the
281
- default), use the value of *compare *: this would normally be
282
- the expected behavior. A field should be considered in the hash
283
- if it's used for comparisons. Setting this value to anything
280
+ included in the generated :meth: `~object.__hash__ ` method. If false,
281
+ this field is excluded from the generated :meth: `~object.__hash__ `.
282
+ If ``None `` (the default), use the value of *compare *: this would
283
+ normally be the expected behavior, since a field should be included
284
+ in the hash if it's used for comparisons. Setting this value to anything
284
285
other than ``None `` is discouraged.
285
286
286
287
One possible reason to set ``hash=False `` but ``compare=True ``
You can’t perform that action at this time.
0 commit comments