Skip to content

Commit 3a7c61b

Browse files
committed
docs: mention the different types of exact specifications and pep440
1 parent 8558f0c commit 3a7c61b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/dependency-specification.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,15 @@ Multiple version requirements can also be separated with a comma, e.g. `>= 1.2,
7979

8080
You can specify the exact version of a package.
8181

82-
`==1.2.3` is an example of an exact version specification.
82+
`1.2.3` is an example of an exact version specification.
8383

8484
This will tell Poetry to install this version and this version only.
8585
If other dependencies require a different version, the solver will ultimately fail and abort any install or update procedures.
8686

87+
Exact versions can also be specified with `==` according to [PEP 440](https://peps.python.org/pep-0440/).
88+
89+
`==1.2.3` is an example of this.
90+
8791
### Using the `@` operator
8892

8993
When adding dependencies via `poetry add`, you can use the `@` operator.

0 commit comments

Comments
 (0)