Skip to content

Commit

Permalink
Update docs/pyproject.md
Browse files Browse the repository at this point in the history
Co-authored-by: Arun Babu Neelicattu <[email protected]>
  • Loading branch information
felixgwilliams and abn authored Jan 29, 2025
1 parent 387d0a4 commit f5e3064
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/pyproject.md
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ python = "^3.7"

{{% note %}}
If you specify the compatible python versions in both `tool.poetry.dependencies` and in `project.requires-python`, then Poetry will use the information in `tool.poetry.dependencies` for locking, but the python versions must be a subset of those allowed by `project.requires-python`.

For example, the following is invalid and will result in an error, because versions `4.0` and greater are allowed by `tool.poetry.dependencies`, but not by `project.requires-python`.

```toml
Expand Down

0 comments on commit f5e3064

Please sign in to comment.