mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-24 13:00:57 +08:00
MAINT: __set__ takes instance and value.
This commit is contained in:
@@ -50,7 +50,7 @@ class lazyval(object):
|
||||
self._cache[instance] = val = self._get(instance)
|
||||
return val
|
||||
|
||||
def __set__(self, instance, owner):
|
||||
def __set__(self, instance, value):
|
||||
raise AttributeError("Can't set read-only attribute.")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user