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 586: add Literal type constructor to typing #81227

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

Implement PEP 586: add Literal type constructor to typing #81227

ilevkivskyi opened this issue May 25, 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 37046
Nosy @gvanrossum, @Michael0x2a, @ilevkivskyi
PRs
  • bpo-37046: PEP 586: Add Literal to typing module #13572
  • 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-26.08:43:34.167>
    created_at = <Date 2019-05-25.19:08:01.146>
    labels = ['3.8', 'type-feature', 'library']
    title = 'Implement PEP 586: add Literal type constructor to typing'
    updated_at = <Date 2019-05-26.08:43:34.167>
    user = 'https://github.com/ilevkivskyi'

    bugs.python.org fields:

    activity = <Date 2019-05-26.08:43:34.167>
    actor = 'levkivskyi'
    assignee = 'levkivskyi'
    closed = True
    closed_date = <Date 2019-05-26.08:43:34.167>
    closer = 'levkivskyi'
    components = ['Library (Lib)']
    creation = <Date 2019-05-25.19:08:01.146>
    creator = 'levkivskyi'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37046
    keywords = ['patch']
    message_count = 2.0
    messages = ['343503', '343539']
    nosy_count = 3.0
    nosy_names = ['gvanrossum', 'michael0x2a', 'levkivskyi']
    pr_nums = ['13572']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue37046'
    versions = ['Python 3.8']

    @ilevkivskyi
    Copy link
    Member Author

    The actual implementation is performed by type checkers like mypy. We just need to add Literal to the typing module.

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

    New changeset b891c46 by Ivan Levkivskyi in branch 'master':
    bpo-37046: PEP-586: Add Literal to typing module (bpo-13572)
    b891c46

    @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