Skip to content

Commit c1b016e

Browse files
committed
Update README
1 parent 9241eb4 commit c1b016e

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

README.rst

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -142,24 +142,6 @@ Invariants
142142
#<__main__.Point at 0x7f2bd043c780>
143143
144144
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-
163145
ValueObject within ValueObject
164146
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
165147

0 commit comments

Comments
 (0)