You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/local/home/a.pirogov/.cache/pypoetry/virtualenvs/dummy-project-oiKNdZ99-py3.8/lib/python3.8/site-packages/pyproject_parser/__init__.py", line 176, in load
config = dom_toml.load(filename)
File "/local/home/a.pirogov/.cache/pypoetry/virtualenvs/dummy-project-oiKNdZ99-py3.8/lib/python3.8/site-packages/dom_toml/__init__.py", line 217, in load
return loads(
File "/local/home/a.pirogov/.cache/pypoetry/virtualenvs/dummy-project-oiKNdZ99-py3.8/lib/python3.8/site-packages/dom_toml/__init__.py", line 171, in loads
return toml.loads( # type: ignore[return-value]
File "/local/home/a.pirogov/.cache/pypoetry/virtualenvs/dummy-project-oiKNdZ99-py3.8/lib/python3.8/site-packages/toml/decoder.py", line 511, in loads
ret = decoder.load_line(line, currentlevel, multikey,
File "/local/home/a.pirogov/.cache/pypoetry/virtualenvs/dummy-project-oiKNdZ99-py3.8/lib/python3.8/site-packages/toml/decoder.py", line 778, in load_line
value, vtype = self.load_value(pair[1], strictly_valid)
File "/local/home/a.pirogov/.cache/pypoetry/virtualenvs/dummy-project-oiKNdZ99-py3.8/lib/python3.8/site-packages/toml/decoder.py", line 880, in load_value
return (self.load_array(v), "array")
File "/local/home/a.pirogov/.cache/pypoetry/virtualenvs/dummy-project-oiKNdZ99-py3.8/lib/python3.8/site-packages/toml/decoder.py", line 1002, in load_array
a[b] = a[b] + ',' + a[b + 1]
IndexError: list index out of range
Expected result:
No exception.
Reproduces how often:
Always
Version
Python: 3.8
pyproject-parser: 0.8
Installation source
PyPI
Other Additional Information:
I think the simplest fix would be to switch from the toml to the tomli library, which parses the file just fine.
The text was updated successfully, but these errors were encountered:
Description
TOML 1.0.0 supports mixed type arrays, but the
toml
library does not, leading to parsing errors.Steps to Reproduce
This is a valid poetry
pyproject.toml
working without issues:Now let's parse it:
Actual result:
Expected result:
No exception.
Reproduces how often:
Always
Version
Installation source
PyPI
Other Additional Information:
I think the simplest fix would be to switch from the
toml
to thetomli
library, which parses the file just fine.The text was updated successfully, but these errors were encountered: