Skip to content

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

@uriyyo

Description

@uriyyo
BPO44807
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=Noneclosed_at=Nonecreated_at=<Date2021-08-02.09:53:46.694>labels= ['type-bug', 'library', '3.11'] title='typing.Protocol silently overrides __init__ method of delivered class'updated_at=<Date2022-03-01.06:52:43.672>user='https://github.com/uriyyo'

    bugs.python.org fields:

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

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions