Skip to content

Commit

Permalink
Merge pull request #18 from tomprince/patch-1
Browse files Browse the repository at this point in the history
An interface is provided by a value, not vice-versa.
  • Loading branch information
hynek committed Jul 14, 2015
2 parents 7f5a9cd + e205f64 commit 605f061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion attr/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def provides(interface):
"""
A validator that raises a :exc:`TypeError` if the initializer is called
with an object that does not provide the requested *interface* (checks are
perfomed using ``value.providedBy(interface)`` (see `zope.interface
perfomed using ``interface.providedBy(value)`` (see `zope.interface
<http://docs.zope.org/zope.interface/>`_).
:param interface: The interface to check for.
Expand Down

0 comments on commit 605f061

Please sign in to comment.