TypedDict with patterns as key names
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
先檢視連結 gist 中 TypedDict 的行為和 WSGI 型別定義,並以 PEP3333 作為需求參考。判斷支援 HTTP_* 鍵名稱是否需要新的選項或其他 typing 設計,然後與 typing maintainers 確認提案;當已確認一個獲接受的方法以及相應的測試或文件時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
I'm not sure if I should open an issue here at typing, please let me know if there is something better.
WSGI type defines. https://gist.github.com/abersheeran/f3723029387fe7f6584c6b157b90a50a
When writing a more static WSGI definition based on PEP3333, I discovered such a problem. TypedDict cannot describe the HTTP_* keys in the WSGI specification. I know that one of the original intentions of TypedDict is to prevent typing the wrong keys. But can we add an option (for example: allow_undefined=True) to allow this actual problem?
- 主要語言
- Python
- 星號
- 1.8k
- 分支
- 302
- 平均合併
- 20 小時 26 分鐘
- 30 天內合併 PR
- 10
環境準備
我們還沒有檢查這個專案的環境設定檔。先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
python/typing 的其他 Issue
-
topic: typing spec
難度 2/5 1-3 小時 新手友好度 72/100
python/typing#2356 · 2 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
topic: typing spec
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆
-
topic: documentation
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
topic: documentation
難度 2/5 1-3 小時 新手友好度 65/100
python/typing#2150 · 2 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
-
topic: conformance tests topic: typing spec
難度 3/5 1-2 天 新手友好度 72/100
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
PedestrianDynamics/pyFDS-Evac#199 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
521xueweihan/HelloGitHub#3790 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
sandialabs/atlas-ui-3#978 ·
維護者通常 1 天內回覆
-
area: tests perceived difficulty: 2
難度 2/5 1-3 小時 新手友好度 72/100
Nitjsefnie-Harness-Commons/daedalus#1255 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 86/100
EleutherAI/lm-evaluation-harness#4256 ·
維護者通常 1 天內回覆