diff --git a/README.md b/README.md index df088bb..0249ef0 100644 --- a/README.md +++ b/README.md @@ -1036,7 +1036,7 @@ class : : = : list/dict/set = field(default_factory=list/dict/set) ``` -* **An object can be made sortable with `'order=True'` or immutable with `'frozen=True'`.** +* **Objects can be made sortable with `'order=True'` or immutable and hashable with `'frozen=True'`.** * **Function field() is needed because `': list = []'` would make a list that is shared among all instances.** * **Default_factory can be any [callable](#callable).** diff --git a/index.html b/index.html index 709433e..147e805 100644 --- a/index.html +++ b/index.html @@ -989,7 +989,7 @@ Z = dataclasses.make_dataclass('Z', [ -
  • An object can be made sortable with 'order=True' or immutable with 'frozen=True'.
  • +
  • Objects can be made sortable with 'order=True' or immutable and hashable with 'frozen=True'.
  • Function field() is needed because '<attr_name>: list = []' would make a list that is shared among all instances.
  • Default_factory can be any callable.