diff options
| author | Anton Samarchyan <anton.samarchyan@savoirfairelinux.com> | 2017-01-24 15:32:33 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-02-11 16:11:08 -0500 |
| commit | 9718fa2e8abe430c3526a9278dd976443d4ae3c6 (patch) | |
| tree | cc9e2c659759bbfdb4c7785c59a909cb2655af0d /django/utils/functional.py | |
| parent | 98bcc5d81bca578f3a5b4d47907ba4ac40446887 (diff) | |
Refs #27656 -- Updated django.utils docstring verbs according to PEP 257.
Diffstat (limited to 'django/utils/functional.py')
| -rw-r--r-- | django/utils/functional.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py index 9dc321ebd8..055e511912 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -34,17 +34,16 @@ class cached_property: class Promise: """ - This is just a base class for the proxy class created in - the closure of the lazy function. It can be used to recognize - promises in code. + Base class for the proxy class created in the closure of the lazy function. + It's used to recognize promises in code. """ pass def lazy(func, *resultclasses): """ - Turns any callable into a lazy evaluated callable. You need to give result - classes or types -- at least one is needed so that the automatic forcing of + Turn any callable into a lazy evaluated callable. result classes or types + is required -- at least one is needed so that the automatic forcing of the lazy evaluation code is triggered. Results are not memoized; the function is evaluated on every access. """ @@ -383,7 +382,7 @@ class SimpleLazyObject(LazyObject): def partition(predicate, values): """ - Splits the values into two sets, based on the return value of the function + Split the values into two sets, based on the return value of the function (True/False). e.g.: >>> partition(lambda x: x > 3, range(5)) |
