Преглед на файлове

Corrected cached_property() signature in docs.

Sergey Fedoseev преди 6 години
родител
ревизия
82b9708c6f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      docs/ref/utils.txt

+ 1 - 1
docs/ref/utils.txt

@@ -422,7 +422,7 @@ https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004
 .. module:: django.utils.functional
     :synopsis: Functional programming tools.
 
-.. class:: cached_property(object, name)
+.. class:: cached_property(func, name=None)
 
     The ``@cached_property`` decorator caches the result of a method with a
     single ``self`` argument as a property. The cached result will persist