From 2b5f9026bc7ee975d5fcb257afb5a30a56b15ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Fri, 29 Dec 2023 11:05:00 +0100 Subject: [PATCH] Update docs/cli.md --- docs/cli.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/cli.md b/docs/cli.md index 02683c76a99..0a907a907ce 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -290,8 +290,10 @@ poetry update requests toml Note that this will not update versions for dependencies outside their [version constraints]({{< relref "dependency-specification#version-constraints" >}}) specified in the `pyproject.toml` file. -In other terms, `poetry update foo` will be a no-op if the only latest version for `foo` lies outside the constraint specified for `foo` in the `pyproject.toml` file. (More info on constraints can be found in our (Version Requirements)[https://python-poetry.org/docs/dependency-specification/#version-constraints].) -In order for `foo` to be updated, you must update the constraint. You can do this using the `add` command. +In other terms, `poetry update foo` will be a no-op if the version constraint +specified for `foo` is `~2.3` or `2.3` and `2.4` is available. +In order for `foo` to be updated, you must update the constraint, for example `^2.3`. +You can do this using the `add` command. ### Options