mirror of
https://github.com/Hopiu/llm.git
synced 2026-03-16 20:50:25 +00:00
Clarifying comment
This commit is contained in:
parent
fd2f0ffbcd
commit
f74e242442
1 changed files with 2 additions and 0 deletions
|
|
@ -183,6 +183,8 @@ class Toolbox:
|
|||
original_init = cls.__init__
|
||||
|
||||
def wrapped_init(self, *args, **kwargs):
|
||||
# Track args/kwargs passed to constructor in self._config
|
||||
# so we can serialize them to a database entry later on
|
||||
sig = inspect.signature(original_init)
|
||||
bound = sig.bind(self, *args, **kwargs)
|
||||
bound.apply_defaults()
|
||||
|
|
|
|||
Loading…
Reference in a new issue