Skip to content

Commit

Permalink
docstring on apply_properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Feb 17, 2015
1 parent 46bc7fd commit 2f0ba09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyramid/util.py
Expand Up @@ -78,6 +78,9 @@ def make_property(cls, callable, name=None, reify=False):

@classmethod
def apply_properties(cls, target, properties):
"""Accept a list or dict of ``properties`` generated from
:meth:`.make_property` and apply them to a ``target`` object.
"""
attrs = dict(properties)
if attrs:
parent = target.__class__
Expand Down

0 comments on commit 2f0ba09

Please sign in to comment.