From ab6b34b7781ce9080bbb6bfc63b408ca226669ef Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Fri, 4 Dec 2026 09:59:15 +0100 Subject: [PATCH] Explain the "why" --- src/velofy/db/cities.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/velofy/db/cities.py b/src/velofy/db/cities.py index 2a4cf96..ef58531 100644 --- a/src/velofy/db/cities.py +++ b/src/velofy/db/cities.py @@ -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