Skip to content

Commit c275878

Browse files
fix: inconsistent docs for multiple constraint dependencies (#6604)
Co-authored-by: Bjorn Neergaard <[email protected]>
1 parent a285318 commit c275878

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/dependency-specification.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,14 @@ Sometimes, one of your dependency may have different version ranges depending
302302
on the target Python versions.
303303

304304
Let's say you have a dependency on the package `foo` which is only compatible
305-
with Python <3.0 up to version 1.9 and compatible with Python 3.4+ from version 2.0:
305+
with Python 3.6-3.7 up to version 1.9, and compatible with Python 3.8+ from version 2.0:
306306
you would declare it like so:
307307

308308
```toml
309309
[tool.poetry.dependencies]
310310
foo = [
311-
{version = "<=1.9", python = "^3.6"},
312-
{version = "^2.0", python = "^3.8"}
311+
{version = "<=1.9", python = ">=3.6,<3.8"},
312+
{version = "^2.0", python = ">=3.8"}
313313
]
314314
```
315315

0 commit comments

Comments
 (0)