Skip to content

Commit

Permalink
Set defer_build=True config, improving import time significantly
Browse files Browse the repository at this point in the history
  • Loading branch information
LewisGaul committed Oct 19, 2024
1 parent 40e1f27 commit 74a3b2a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python_on_whales/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class DockerCamelModel(pydantic.BaseModel):
model_config = pydantic.ConfigDict(
populate_by_name=True,
alias_generator=to_docker_camel,
defer_build=True,
)
else:

Expand All @@ -115,7 +116,8 @@ def run(
env: Dict[str, str] = ...,
tty: bool = ...,
pass_fds: Sequence[int] = ...,
) -> Tuple[str, str]: ...
) -> Tuple[str, str]:
...


@overload
Expand All @@ -128,7 +130,8 @@ def run(
env: Dict[str, str] = ...,
tty: bool = ...,
pass_fds: Sequence[int] = ...,
) -> str: ...
) -> str:
...


def run(
Expand Down

0 comments on commit 74a3b2a

Please sign in to comment.