Skip to content

Implement PEP 544: add Protocol to typing #81239

Closed

Description

@ilevkivskyi
BPO 37058
Nosy @gvanrossum, @ambv, @ilevkivskyi
PRs
  • bpo-37058: PEP 544: Add Protocol to typing module #13585
  • 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 = 'https://github.com/ilevkivskyi'
    closed_at = <Date 2019-05-28.07:41:35.187>
    created_at = <Date 2019-05-26.18:52:14.880>
    labels = ['3.8', 'type-feature', 'library']
    title = 'Implement PEP 544: add Protocol to typing'
    updated_at = <Date 2019-05-28.07:41:35.186>
    user = 'https://github.com/ilevkivskyi'

    bugs.python.org fields:

    activity = <Date 2019-05-28.07:41:35.186>
    actor = 'levkivskyi'
    assignee = 'levkivskyi'
    closed = True
    closed_date = <Date 2019-05-28.07:41:35.187>
    closer = 'levkivskyi'
    components = ['Library (Lib)']
    creation = <Date 2019-05-26.18:52:14.880>
    creator = 'levkivskyi'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37058
    keywords = ['patch']
    message_count = 2.0
    messages = ['343576', '343746']
    nosy_count = 3.0
    nosy_names = ['gvanrossum', 'lukasz.langa', 'levkivskyi']
    pr_nums = ['13585']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue37058'
    versions = ['Python 3.8']

    Activity

    1. ilevkivskyi commented on May 26, 2019

      @ilevkivskyi
      MemberAuthor

      The implementation would be basically copying some code from typing_extension and fixing some important known issues (such as renaming @runtime to @runtime_checkable and allowing sub-protocols of builtin protocols). Also ideally we should get rid of the metaclass _ProtocolMeta.

    2. self-assigned this
      on May 26, 2019
    3. added
      stdlib
      type-feature
      on May 26, 2019
    4. ilevkivskyi commented on May 28, 2019

      @ilevkivskyi
      MemberAuthor

      New changeset 74d7f76 by Ivan Levkivskyi in branch 'master':
      bpo-37058: PEP-544: Add Protocol to typing module (GH-13585)
      74d7f76

    5. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    3.8 (EOL)stdlibtype-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions