fix infinite recursion on pydantic instantiation

This commit is contained in:
Nick Sweeting 2024-09-06 03:19:03 -07:00
parent cfe5798ade
commit ab517d9848
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -54,8 +54,8 @@ class BaseHook(BaseModel):
from_attributes=True,
populate_by_name=True,
validate_defaults=True,
validate_assignment=True,
revalidate_instances="always",
validate_assignment=False,
revalidate_instances="subclass-instances",
)
# verbose_name: str = Field()

View file

@ -111,7 +111,7 @@ class BasePlugin(BaseModel):
for hook in self.hooks:
hook.register(settings, parent_plugin=self)
print('√ REGISTERED PLUGIN:', self.plugin_module)
# print('√ REGISTERED PLUGIN:', self.plugin_module)
# @validate_call
# def install_binaries(self) -> Self: