Skip to content

Commit 7f8d541

Browse files
committed
Fix reference to optional dependencies table
1 parent 95d3b96 commit 7f8d541

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package-structure-code/declare-dependencies.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ Optional dependencies for building your documentation, running your tests and bu
153153
* linting and other code cleanup tools
154154

155155
These dependencies are considered optional, because they are not required to install and use your package. Feature
156-
dependencies are considered optional and should also be placed in the `[optional.dependencies]` table.
156+
dependencies are considered optional and should also be placed in the `[project.optional-dependencies]` table.
157157

158158
Optional dependencies can be stored in an
159-
`[optional.dependencies]` table in your **pyproject.toml** file.
159+
`[project.optional.dependencies]` table in your **pyproject.toml** file.
160160

161-
It's important to note that within the `[optional.dependencies]` table, you can store additional, optional dependencies within named sub-groups. This is a different table than the dependencies array located within the `[project]` table discussed above which contains a single array with a single list of required packages.
161+
It's important to note that within the `[project.optional.dependencies]` table, you can store additional, optional dependencies within named sub-groups. This is a different table than the dependencies array located within the `[project]` table discussed above which contains a single array with a single list of required packages.
162162

163163
## Create optional dependency groups
164164

0 commit comments

Comments
 (0)