Skip to content

typing.Protocol silently overrides __init__ method of delivered class #88970

Closed
@uriyyo

Description

@uriyyo
BPO 44807
Nosy @gvanrossum, @ambv, @JelleZijlstra, @uriyyo, @Fidget-Spinner, @adriangb
PRs
  • bpo-44807: Forbid to define __init__ method in Protocol classes #27543
  • bpo-44807: Allow Protocol classes to define __init__ #31628
  • 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-08-02.09:53:46.694>
    labels = ['type-bug', 'library', '3.11']
    title = 'typing.Protocol silently overrides __init__ method of delivered class'
    updated_at = <Date 2022-03-01.06:52:43.672>
    user = 'https://github.com/uriyyo'

    bugs.python.org fields:

    activity = <Date 2022-03-01.06:52:43.672>
    actor = 'adriangb'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2021-08-02.09:53:46.694>
    creator = 'uriyyo'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44807
    keywords = ['patch']
    message_count = 16.0
    messages = ['398742', '402333', '402348', '402355', '402361', '402381', '414169', '414172', '414173', '414236', '414238', '414240', '414241', '414242', '414243', '414244']
    nosy_count = 6.0
    nosy_names = ['gvanrossum', 'lukasz.langa', 'JelleZijlstra', 'uriyyo', 'kj', 'adriangb']
    pr_nums = ['27543', '31628']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue44807'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only 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