python-poetry / python-poetry/poetry-plugin-export

verbose options passed as tuple rather than str

Open
#110 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
335
Forks
57
Avg merge
1h 23m
Merged PRs (30d)
3

Description

https://github.com/python-poetry/poetry-plugin-export/blob/f8cbb9c7ae0586759f8bfe95f32268812a4f6eec/src/poetry_plugin_export/command.py#L67

Errors out with

TypeError
sequence item 0: expected str instance, tuple found
at /usr/local/lib/python3.9/site-packages/poetry_plugin_export/command.py:73 in handle

The setting of verbose option arguments in options array joined to add to the lock file has an extra set of parentheses that causes the intended default null value to be combined with the argument into a tuple.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/poetry_plugin_export/command.py around line 67, then inspect the handling that reaches the join failure reported at line 73. Exercise the export command with verbose options and verify that the options can be added to the lock-file command without the TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.