Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
quiqueporta committed Apr 29, 2019
1 parent 9241eb4 commit c1b016e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,24 +142,6 @@ Invariants
#<__main__.Point at 0x7f2bd043c780>
Mutable types not allowed
~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: python
from simple_value_object import ValueObject, invariant
class AValueObject(ValueObject):
def __init__(self, an_arg):
pass
AValueObject(an_arg={'key': 'value'})
#MutableTypeNotAllowedException: 'an_arg' cannot be a mutable data type.
AValueObject({'key': 'value'})
#MutableTypeNotAllowedException: Mutable args are not allowed.
ValueObject within ValueObject
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit c1b016e

Please sign in to comment.