Core: Support default value with cache_self1 (#4667)

* add cache_self1_default and tests

* merge the two decorators

* just change the defaults of the wrap lol

* add test for default and default
This commit is contained in:
Jérémie Bolduc
2025-04-19 11:55:02 -04:00
committed by GitHub
parent e090153d93
commit efe2b7c539
2 changed files with 15 additions and 0 deletions

View File

@@ -114,6 +114,8 @@ def cache_self1(function: typing.Callable[[S, T], RetType]) -> typing.Callable[[
cache[arg] = res
return res
wrap.__defaults__ = function.__defaults__
return wrap