From d992525ce6cd43d9ce14cc552886b07bc77ba9e2 Mon Sep 17 00:00:00 2001 From: Lewis Gaul Date: Wed, 23 Oct 2024 12:10:45 +0100 Subject: [PATCH] Set `defer_build=True` pydantic config, improving import time significantly (#643) Co-authored-by: Gabriel de Marmiesse --- python_on_whales/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python_on_whales/utils.py b/python_on_whales/utils.py index bebdce24..eb2ca22a 100644 --- a/python_on_whales/utils.py +++ b/python_on_whales/utils.py @@ -91,6 +91,7 @@ class DockerCamelModel(pydantic.BaseModel): model_config = pydantic.ConfigDict( populate_by_name=True, alias_generator=to_docker_camel, + defer_build=True, )