TypeError: 'String' object does not support item assignment
when pyproject.toml
is malformed
#2198
Labels
🐛 bug
Something isn't working
Steps to reproduce
git clone https://git.launchpad.net/beautifulsoup cd beautifulsoup pdm init -v
Actual behavior
Expected behavior
Environment Information
I inspected with a breakpoint at the error site at the end of the traceback and can see
target
is being assigned as"MIT"
hence the error.The type annotation is for a
Mapping[str,str]
so something has gone wrong.This library is using a bad
license
value in its pyproject.toml (just a str not a dict type). I thought you might want to know that it crashespdm init
though and maybepdm
would be better exitting with a message about what failed to validate.The text was updated successfully, but these errors were encountered: