Skip to content

Commit

Permalink
Document changes in the docstring for parse_optional_dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed May 2, 2022
1 parent 5e12987 commit 947ac87
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pyproject_parser/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,19 @@ def parse_optional_dependencies(
]
:param config: The unparsed TOML config for the :pep621:`project table <table-name>`.
:rtype:
.. versionchanged:: $VERSION
Extra names with hyphens are now considered valid.
If two extra names would normalize to the same string per :pep:`685` a warning is emitted.
In a future version this will become an error.
.. attention::
A future version of `pyproject-parser` will normalize all extra names
and write them to ``METADATA`` in this normalized form.
"""

parsed_optional_dependencies: Dict[str, Set[ComparableRequirement]] = dict()
Expand Down

0 comments on commit 947ac87

Please sign in to comment.