Skip to content

Commit

Permalink
use extend method to add python in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
ssurbhi560 committed Oct 19, 2022
1 parent 245e25c commit f45dd8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion condacolab.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _update_environment(
if specs:
env_details["dependencies"] = specs
if python_version:
env_details["dependencies"] += [f"python={python_version}"]
env_details["dependencies"].extend([f"python={python_version}"])
if pip_args:
pip_args_dict = {"pip": pip_args}
env_details["dependencies"].append(pip_args_dict)
Expand Down

0 comments on commit f45dd8f

Please sign in to comment.