Skip to content

Calling super().__init__ in subclasses of typing.Protocol raises RecursionError #89284

Description

@hauntsaninja
BPO 45121
Nosy @ericvsmith, @ambv, @JelleZijlstra, @pablogsal, @miss-islington, @hauntsaninja, @uriyyo, @Fidget-Spinner
PRs
  • bpo-45121: Fix issue when Protocol.__init__ raise RecursionError #28206
  • [3.10] bpo-45121: Fix RecursionError when calling Protocol.__init__ from a subclass' __init__ (GH-28206) #28232
  • [3.9] bpo-45121: Fix RecursionError when calling Protocol.__init__ from a subclass' __init__ (GH-28206) #28233
  • 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-09-19.19:19:02.151>
    created_at = <Date 2021-09-06.22:05:20.335>
    labels = ['release-blocker', 'library', '3.9', '3.10', '3.11']
    title = 'Calling super().__init__ in subclasses of typing.Protocol raises RecursionError'
    updated_at = <Date 2021-10-04.19:18:42.785>
    user = 'https://github.com/hauntsaninja'

    bugs.python.org fields:

    activity = <Date 2021-10-04.19:18:42.785>
    actor = 'pablogsal'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-09-19.19:19:02.151>
    closer = 'pablogsal'
    components = ['Library (Lib)']
    creation = <Date 2021-09-06.22:05:20.335>
    creator = 'hauntsaninja'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45121
    keywords = ['patch']
    message_count = 11.0
    messages = ['401184', '401197', '401199', '401200', '401284', '401369', '401384', '401385', '401386', '402164', '403161']
    nosy_count = 8.0
    nosy_names = ['eric.smith', 'lukasz.langa', 'JelleZijlstra', 'pablogsal', 'miss-islington', 'hauntsaninja', 'uriyyo', 'kj']
    pr_nums = ['28206', '28232', '28233']
    priority = 'release blocker'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue45121'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9 (EOL)end of liferelease-blockerstdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions