MCPcopy Create free account
hub / github.com/dateutil/dateutil / _invalidates_cache

Function _invalidates_cache

src/dateutil/rrule.py:73–84  ·  view source on GitHub ↗

Decorator for rruleset methods which may invalidate the cached length.

(f)

Source from the content-addressed store, hash-verified

71
72
73def _invalidates_cache(f):
74 """
75 Decorator for rruleset methods which may invalidate the
76 cached length.
77 """
78 @wraps(f)
79 def inner_func(self, *args, **kwargs):
80 rv = f(self, *args, **kwargs)
81 self._invalidate_cache()
82 return rv
83
84 return inner_func
85
86
87class rrulebase:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected