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

Function _invalidates_cache

src/dateutil/rrule.py:80–91  ·  view source on GitHub ↗

Decorator for rruleset methods which may invalidate the cached length.

(f)

Source from the content-addressed store, hash-verified

78
79
80def _invalidates_cache(f):
81 """
82 Decorator for rruleset methods which may invalidate the
83 cached length.
84 """
85 @wraps(f)
86 def inner_func(self, *args, **kwargs):
87 rv = f(self, *args, **kwargs)
88 self._invalidate_cache()
89 return rv
90
91 return inner_func
92
93
94class rrulebase(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected