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:

View file

@ -5,7 +5,7 @@
groups = ["default", "ldap", "sonic"]
strategy = ["inherit_metadata"]
lock_version = "4.5.0"
content_hash = "sha256:61d53c8fbfcdaaf18e04d7aab12887caf9260b803db7e5b66a22e37b88824c55"
content_hash = "sha256:c890335ff9967151514ff57e709d8b39c19f51edce5d15fb1b15c0a276a573f9"
[[metadata.targets]]
requires_python = "==3.10.*"