Fix wrong usage of Hook, should be LoaderPlugin

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Petr Kalis 2025-06-19 12:08:27 +02:00 committed by GitHub
parent d12273a6b8
commit 68751b8f22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -391,7 +391,7 @@ def add_hooks_to_loader(
for hook in hooks: for hook in hooks:
post_hook = getattr(hook, post_hook_name, None) post_hook = getattr(hook, post_hook_name, None)
if callable(post_hook): if callable(post_hook):
post_hook(hook, result, *args, **kwargs) post_hook(self, result, *args, **kwargs)
return result return result