Fixed #25611 -- Standardized descriptor signatures.

This commit is contained in:
Tim Graham 2015-10-26 11:31:16 -04:00
parent 34af2bc523
commit 0b5d32faca
11 changed files with 28 additions and 28 deletions

View file

@ -27,7 +27,7 @@ class cached_property(object):
self.__doc__ = getattr(func, '__doc__')
self.name = name or func.__name__
def __get__(self, instance, type=None):
def __get__(self, instance, cls=None):
if instance is None:
return self
res = instance.__dict__[self.name] = self.func(instance)