Opened 7 months ago
Last modified 7 days ago
#36321 assigned New feature
Use argparse suggest_on_error on Python 3.14+
| Reported by: | Adam Johnson | Owned by: | Stephen kihuni |
|---|---|---|---|
| Component: | Core (Management commands) | Version: | dev |
| Severity: | Normal | Keywords: | 6.1 |
| Cc: | Ahmed Ibrahim | Triage Stage: | Accepted |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | yes |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
https://docs.python.org/3.14/library/argparse.html#suggest-on-error
This new feature provides friendly feedback when mistyping a choice or subparser. We can activate for all argparse Parsers (mostly management commands) when Django supports Python 3.14.
Change History (10)
comment:1 by , 7 months ago
| Keywords: | 6.1 added |
|---|---|
| Triage Stage: | Unreviewed → Someday/Maybe |
comment:4 by , 4 months ago
| Cc: | added |
|---|
comment:5 by , 3 weeks ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
| Triage Stage: | Someday/Maybe → Accepted |
Changing status to "Accepted" following the merge of ticket #35844. Also assigning to myself to reserve for Djangonaut Space. I hope these changes are fine. If anyone objects, let me know.
comment:6 by , 3 weeks ago
| Owner: | changed from to |
|---|
comment:7 by , 2 weeks ago
| Has patch: | set |
|---|
comment:9 by , 2 weeks ago
| Patch needs improvement: | set |
|---|
Great, thanks for submitting a PR. When you've addressed the first round of feedback, make sure to come back here and unset "Patch needs improvement". Cheers!
comment:10 by , 7 days ago
| Description: | modified (diff) |
|---|
Thank you Adam, the feature request makes sense. Given that Python 3.14 is scheduled for October 1st, and the feature freeze for 6.0 is mid September, we could only include this starting in 6.1.