We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9241eb4 commit c1b016eCopy full SHA for c1b016e
README.rst
@@ -142,24 +142,6 @@ Invariants
142
#<__main__.Point at 0x7f2bd043c780>
143
144
145
-Mutable types not allowed
146
-~~~~~~~~~~~~~~~~~~~~~~~~~
147
-
148
-.. code-block:: python
149
150
- from simple_value_object import ValueObject, invariant
151
152
- class AValueObject(ValueObject):
153
154
- def __init__(self, an_arg):
155
- pass
156
157
- AValueObject(an_arg={'key': 'value'})
158
- #MutableTypeNotAllowedException: 'an_arg' cannot be a mutable data type.
159
160
- AValueObject({'key': 'value'})
161
- #MutableTypeNotAllowedException: Mutable args are not allowed.
162
163
ValueObject within ValueObject
164
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
165
0 commit comments