python / python/cpython

functools.singledispatch doesn't verify annotation is on FIRST parameter

オープン
#84,644 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

3.13 3.14 3.15 stdlib type-bug
主要言語
Python
スター
77.2k
フォーク
36k
平均マージ
1日 9時間
マージ済み PR(30日)
558

説明

BPO 40464
Nosy @rhettinger, @ambv, @Dutcho, @FFY00, @vismantasd, @AlexWaygood
PRs
  • python/cpython#19871
  • 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 2020-05-01.07:04:01.217>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = "functools.singledispatch doesn't verify annotation is on FIRST parameter"
    updated_at = <Date 2021-11-09.22:47:09.886>
    user = 'https://github.com/Dutcho'
    

    bugs.python.org fields:

    activity = <Date 2021-11-09.22:47:09.886>
    actor = 'AlexWaygood'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-05-01.07:04:01.217>
    creator = 'Dutcho'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40464
    keywords = ['patch']
    message_count = 4.0
    messages = ['367824', '368079', '368095', '406062']
    nosy_count = 6.0
    nosy_names = ['rhettinger', 'lukasz.langa', 'Dutcho', 'FFY00', 'bim_bam', 'AlexWaygood']
    pr_nums = ['19871']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue40464'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']
    

    Linked PRs
    • gh-140255
    • gh-143465

    コントリビューションガイド

    コントリビューションガイドを開く

    はじめの一歩

    1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
    2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
    3. リポジトリをフォークし、ブランチを切って変更します。
    4. issue 番号を参照したプルリクエストを送ります。

    調査の方向性

    この issue では functools.singledispatch が挙げられていますが、ソースファイルもテストファイルもありません。まずそのエントリポイントを特定し、リンクされている PR gh-140255 と gh-143465 を確認してください。完了の条件は、アノテーションの処理でアノテーションが最初のパラメーターにあることを検証できることです。

    索引モデルが issue の本文から書いたものです。

    評価

    技術スタック
    python
    領域
    backend
    issue の種類
    バグ
    難易度
    3/5
    見積もり時間
    1〜2日
    活発さ
    停滞
    明瞭さ
    おおむね明確
    初心者へのやさしさ
    25/100

    新しい issue をメールで受け取る

    初心者向けの GitHub issue を短くまとめたダイジェスト。