`extract_full_summary_from_signature` uses undocumented `Match.regs`
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 358
- Forks
- 101
- PR merge metrics
- No merged PRs in 30d
Description
extract_full_summary_from_signature (added by https://github.com/microsoft/knack/commit/430c39e657d8a424ef9b631782fe0e62a6bed203) uses undocumented Match.regs:
According to
- https://stackoverflow.com/questions/27537007/alternative-to-regs-attribute-of-match-object-in-re-in-python3
- https://github.com/python/cpython/issues/62243
it should be replaced by Match.span.
Related: #281
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open knack/introspection.py around line 22 and inspect extract_full_summary_from_signature. Replace the undocumented Match.regs usage with the documented Match.span API, then verify that full summary extraction retains its existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100