Explain the "why"
This commit is contained in:
parent
1a525f538e
commit
ab6b34b778
1 changed files with 2 additions and 0 deletions
|
|
@ -127,6 +127,8 @@ class City(meta.Base):
|
|||
Returns:
|
||||
self: enabling method chaining
|
||||
"""
|
||||
# `cached_property` keeps its value in the instance's `__dict__`
|
||||
# => Removing it resets the cache
|
||||
vars(self).pop("map", None)
|
||||
|
||||
return self
|
||||
|
|
|
|||
Loading…
Reference in a new issue