python / python/cpython

Add __parameters__ and __getitem__ in TypeVar and ParamSpec

未關閉
#88,959 9 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

3.11 stdlib topic-typing type-feature
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

BPO 44796
Nosy @gvanrossum, @serhiy-storchaka, @JelleZijlstra, @sobolevn, @Fidget-Spinner, @AlexWaygood
PRs
  • python/cpython#27511
  • python/cpython#31143
  • Dependencies
  • bpo-44794: Merge tests for typing.Callable and collection.abc.Callable
  • 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 2021-07-31.13:31:29.771>
    labels = ['type-feature', 'library', '3.11']
    title = 'Add __parameters__ and __getitem__ in TypeVar and ParamSpec'
    updated_at = <Date 2022-03-12.13:54:12.028>
    user = 'https://github.com/serhiy-storchaka'
    

    bugs.python.org fields:

    activity = <Date 2022-03-12.13:54:12.028>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2021-07-31.13:31:29.771>
    creator = 'serhiy.storchaka'
    dependencies = ['44794']
    files = []
    hgrepos = []
    issue_num = 44796
    keywords = ['patch']
    message_count = 9.0
    messages = ['398640', '411555', '412464', '412483', '412484', '412575', '412704', '414895', '414992']
    nosy_count = 6.0
    nosy_names = ['gvanrossum', 'serhiy.storchaka', 'JelleZijlstra', 'sobolevn', 'kj', 'AlexWaygood']
    pr_nums = ['27511', '31143']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue44796'
    versions = ['Python 3.11']
    

    貢獻指南

    開啟貢獻指南

    從這裡開始

    1. 先讀完整個 Issue,再讀專案的貢獻指南。
    2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
    3. Fork 儲存庫,在一個分支上完成修改。
    4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

    研究方向

    由於 issue 沒有指出檔案或測試,先檢視連結的 PR 27511 和 31143,以及對 bpo-44794 的相依性。追蹤現有的 TypeVar 和 ParamSpec 實作,以及相關的 typing 測試。當所要求的 parametersgetitem 行為獲得一致實作並有測試涵蓋時,即視為完成。

    由索引模型根據 Issue 內容生成。

    評估

    技術堆疊
    python
    領域
    developer-experience
    Issue 類型
    功能
    難度
    4/5
    預估耗時
    3-5 天
    活躍度
    停滯
    描述清晰度
    基本清楚
    新手友好度
    20/100

    把新 issue 寄到你的電子郵件信箱

    精選適合新手參與的 GitHub issue 摘要。