argparse.ArgumentDefaultsHelpFormatter sometimes provides inaccurate documentation of defaults, so they should be overrideable
未關閉
還沒有人認領這個 Issue。
stdlib
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 558
描述
| BPO | 28742 |
|---|---|
| Nosy | @wimglenn, @pde, @tonybaloney |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2016-11-19.00:17:09.209>
labels = ['3.7', 'type-feature', 'library']
title = 'argparse.ArgumentDefaultsHelpFormatter sometimes provides inaccurate documentation of defaults, so they should be overrideable'
updated_at = <Date 2021-06-03.18:03:15.796>
user = 'https://github.com/pde'
bugs.python.org fields:
activity = <Date 2021-06-03.18:03:15.796>
actor = 'wim.glenn'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2016-11-19.00:17:09.209>
creator = 'pde'
dependencies = []
files = []
hgrepos = []
issue_num = 28742
keywords = []
message_count = 7.0
messages = ['281183', '281184', '281189', '281590', '282102', '282507', '341608']
nosy_count = 4.0
nosy_names = ['paul.j3', 'wim.glenn', 'pde', 'anthonypjshaw']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue28742'
versions = ['Python 3.7']
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先閱讀 argparse.ArgumentDefaultsHelpFormatter 及其周圍的 argparse 實作,以了解預設值的呈現方式。檢視現有的 argparse 測試,並找出針對不準確預設值的預期覆寫行為。完成的標準是:呼叫端可以覆寫顯示的預設值,而不破壞目前的 formatter 行為,並且測試涵蓋這項新行為。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100