Skip to content

Subclassing Protocol get different __init__ #88969

@uriyyo

Description

@uriyyo
BPO 44806
Nosy @ambv, @serhiy-storchaka, @miss-islington, @uriyyo, @Fidget-Spinner
PRs
  • bpo-44806: Fix issue with typing.Protocol __init__ method generation #27541
  • bpo-44806: Fix __init__ in subclasses of protocols #27545
  • [3.10] bpo-44806: Fix __init__ in subclasses of protocols (GH-27545) #27558
  • [3.9] bpo-44806: Fix __init__ in subclasses of protocols (GH-27545) #27559
  • bpo-44807: Forbid to define __init__ method in Protocol classes #27543
  • 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 = <Date 2021-08-02.17:37:34.149>
    created_at = <Date 2021-08-02.09:20:47.665>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'Subclassing Protocol get different __init__'
    updated_at = <Date 2021-08-02.17:37:34.149>
    user = 'https://github.com/uriyyo'

    bugs.python.org fields:

    activity = <Date 2021-08-02.17:37:34.149>
    actor = 'lukasz.langa'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-08-02.17:37:34.149>
    closer = 'lukasz.langa'
    components = ['Library (Lib)']
    creation = <Date 2021-08-02.09:20:47.665>
    creator = 'uriyyo'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44806
    keywords = ['patch']
    message_count = 5.0
    messages = ['398736', '398756', '398780', '398782', '398785']
    nosy_count = 5.0
    nosy_names = ['lukasz.langa', 'serhiy.storchaka', 'miss-islington', 'uriyyo', 'kj']
    pr_nums = ['27541', '27545', '27558', '27559', '27543']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue44806'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9only security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions