Skip to content

typing.NamedTuple() should prefix parameters with '_' #82372

Description

@GlennGribble
BPO 38191
Nosy @gvanrossum, @serhiy-storchaka, @ilevkivskyi, @miss-islington, @Glenn Gribble
PRs
  • bpo-38191: Accept arbitrary keyword names in NamedTuple() and TypedDict(). #16222
  • [3.8] bpo-38191: Accept arbitrary keyword names in NamedTuple() and TypedDict(). (GH-16222) #16237
  • bpo-38191: Turn warnings into errors in NamedTuple() and TypedDict(). #16238
  • [3.7] bpo-38191: Accept arbitrary keyword names in NamedTuple(). (GH-16222) #16239
  • [3.8] bpo-38191: Use positional-only parameters in TypedDict(). #16240
  • 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/serhiy-storchaka'
    closed_at = <Date 2019-09-18.06:08:31.725>
    created_at = <Date 2019-09-16.19:59:55.784>
    labels = ['3.7', '3.8', 'type-feature', 'library', '3.9']
    title = "typing.NamedTuple() should prefix parameters with '_'"
    updated_at = <Date 2019-09-18.06:08:31.725>
    user = 'https://github.com/GlennGribble'

    bugs.python.org fields:

    activity = <Date 2019-09-18.06:08:31.725>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2019-09-18.06:08:31.725>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2019-09-16.19:59:55.784>
    creator = 'gribbg'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38191
    keywords = ['patch']
    message_count = 9.0
    messages = ['352579', '352620', '352622', '352654', '352655', '352656', '352657', '352659', '352697']
    nosy_count = 5.0
    nosy_names = ['gvanrossum', 'serhiy.storchaka', 'levkivskyi', 'miss-islington', 'gribbg']
    pr_nums = ['16222', '16237', '16238', '16239', '16240']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue38191'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Labels

    3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions