mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 06:34:16 +00:00
fix infinite recursion on pydantic instantiation
This commit is contained in:
parent
cfe5798ade
commit
ab517d9848
3 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
|
|
|
@ -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:
|
||||
|
|
2
pdm.lock
2
pdm.lock
|
@ -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.*"
|
||||
|
|
Loading…
Reference in a new issue