Skip to content

Commit

Permalink
Actually make them deeper
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Feb 18, 2017
1 parent e176eca commit 0657718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Although your initializers should be as dumb as possible, it can come in handy t


Decorator
---------
~~~~~~~~~

The more straightforward way is by using the attribute's ``validator`` method as a decorator.
The method has to accept three arguments:
Expand Down Expand Up @@ -321,7 +321,7 @@ If the value does not pass the validator's standards, it just raises an appropri


Callables
---------
~~~~~~~~~

If you want to re-use your validators, you should have a look at the ``validator`` argument to :func:`attr.ib()`.

Expand Down

0 comments on commit 0657718

Please sign in to comment.