Clarifying comment

This commit is contained in:
Simon Willison 2025-06-01 09:16:37 -07:00 committed by GitHub
parent fd2f0ffbcd
commit f74e242442
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()