Skip to content

Commit

Permalink
Merge pull request #1136 from Hnasar/9637-addcomponent-return-value
Browse files Browse the repository at this point in the history
Author: Hnasar

Reviewer: glyph

Fixes: ticket:9637

Remove incorrect documentation for Componentized.addComponent's return type.
  • Loading branch information
glyph committed May 8, 2019
2 parents 046a9b3 + d199136 commit 5cfbc76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/twisted/newsfragments/9637.doc
@@ -0,0 +1 @@
Fix the incorrect docstring for twisted.python.components.Componentized.addComponent which stated that the function returned a list of interfaces, even though the function doesn't actually do so.
2 changes: 0 additions & 2 deletions src/twisted/python/components.py
Expand Up @@ -229,8 +229,6 @@ def addComponent(self, component, ignoreClass=0):
Otherwise, an 'appropriate' interface is one for which its class has
been registered as an adapter for my class according to the rules of
getComponent.
@return: the list of appropriate interfaces
"""
for iface in declarations.providedBy(component):
if (ignoreClass or
Expand Down

0 comments on commit 5cfbc76

Please sign in to comment.