Skip to content

Commit 605f061

Browse files
committed
Merge pull request #18 from tomprince/patch-1
An interface is provided by a value, not vice-versa.
2 parents 7f5a9cd + e205f64 commit 605f061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

attr/validators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def provides(interface):
7474
"""
7575
A validator that raises a :exc:`TypeError` if the initializer is called
7676
with an object that does not provide the requested *interface* (checks are
77-
perfomed using ``value.providedBy(interface)`` (see `zope.interface
77+
perfomed using ``interface.providedBy(value)`` (see `zope.interface
7878
<http://docs.zope.org/zope.interface/>`_).
7979
8080
:param interface: The interface to check for.

0 commit comments

Comments
 (0)