File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -369,9 +369,7 @@ def _cachier_decorator(func):
369369 # explicitly opted in. The 'self' parameter is ignored for cache-key
370370 # computation, so all instances share the same cache.
371371 if core .func_is_method :
372- _allow_methods = _update_with_defaults (
373- allow_non_static_methods , "allow_non_static_methods"
374- )
372+ _allow_methods = _update_with_defaults (allow_non_static_methods , "allow_non_static_methods" )
375373 if not _allow_methods :
376374 raise TypeError (
377375 f"@cachier cannot decorate instance method "
Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ def test_classmethod_not_guarded():
177177 Note: The decorator order must be @classmethod first, then @cachier,
178178 so that cachier sees the underlying function (whose first param is
179179 ``cls``, not ``self``) and the guard is not triggered.
180+
180181 """
181182
182183 # A custom hash_func is needed because the default pickle-based
You can’t perform that action at this time.
0 commit comments