Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/python-apt-install-docstring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@e2b/python-sdk": patch
---

Fix inverted `no_install_recommends` docstring on `TemplateBuilder.apt_install()`.
The docstring described the parameter as "Whether to install recommended
packages", but the code passes apt-get's `--no-install-recommends` flag when the
argument is `True`, which skips recommended packages, the opposite of what the
docs claimed. The docstring now describes the real behavior. No behavior change.
2 changes: 1 addition & 1 deletion packages/python-sdk/e2b/template/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def apt_install(
Install system packages using apt-get.
:param packages: Package name(s) to install
:param no_install_recommends: Whether to install recommended packages
:param no_install_recommends: Whether to skip installing recommended packages
:param fix_missing: Whether to fix missing packages
:return: `TemplateBuilder` class
Expand Down
Loading