fix small typing issue (#3562)

This commit is contained in:
Thomas Brandého 2024-06-26 18:23:20 +02:00 committed by GitHub
parent 956bc0a397
commit 764f723829
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1538,7 +1538,8 @@ class Component(BaseComponent, ABC):
if hooks is not None:
code[hooks] = None
code.update(self._get_added_hooks())
for hook in self._get_added_hooks():
code[hook] = None
# Add the hook code for the children.
for child in self.children: