Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement PEP 544: add Protocol to typing #81239

Closed
ilevkivskyi opened this issue May 26, 2019 · 2 comments
Closed

Implement PEP 544: add Protocol to typing #81239

ilevkivskyi opened this issue May 26, 2019 · 2 comments
Assignees
Labels
3.8 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@ilevkivskyi
Copy link
Member

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']

    @ilevkivskyi
    Copy link
    Member Author

    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.

    @ilevkivskyi ilevkivskyi added the 3.8 only security fixes label May 26, 2019
    @ilevkivskyi ilevkivskyi self-assigned this May 26, 2019
    @ilevkivskyi ilevkivskyi added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels May 26, 2019
    @ilevkivskyi
    Copy link
    Member Author

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

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant