summaryrefslogtreecommitdiff
path: root/src/zope/interface/declarations.py
diff options
context:
space:
mode:
authorJason Madden <jamadden@gmail.com>2021-03-17 10:01:49 -0500
committerJason Madden <jamadden@gmail.com>2021-03-17 10:01:49 -0500
commit9967fcc5ac3c84abbac3de8b9778efd5870b2314 (patch)
tree708ff351ab97bc92d50cda8d4503ad9a593633ee /src/zope/interface/declarations.py
parentdd69666aae99afe0d47b3af81149fbd7e97f59fe (diff)
downloadzope-interface-issue229-take2.tar.gz
Update documentation and Provides repr for better debugging.issue229-take2
Fixes #229. Replaces #232
Diffstat (limited to 'src/zope/interface/declarations.py')
-rw-r--r--src/zope/interface/declarations.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zope/interface/declarations.py b/src/zope/interface/declarations.py
index 9a0146c..e6efbae 100644
--- a/src/zope/interface/declarations.py
+++ b/src/zope/interface/declarations.py
@@ -750,10 +750,11 @@ class Provides(Declaration): # Really named ProvidesClass
Declaration.__init__(self, *(interfaces + (implementedBy(cls), )))
def __repr__(self):
- return "<%s.%s for %s>" % (
+ return "<%s.%s for instances of %s providing %s>" % (
self.__class__.__module__,
self.__class__.__name__,
self._cls,
+ self.__args[1:],
)
def __reduce__(self):