Skip to content

TypedDict(...) as function does not respect "total" when setting __required_keys__ and __optional_keys__ #86225

@agronholm

Description

@agronholm
mannequin
BPO 42059
Nosy @gvanrossum, @agronholm, @ilevkivskyi, @miss-islington, @brandtbucher, @domdfcoding
PRs
  • bpo-42059: Fixed required/optional keys with old-style TypedDict #22736
  • [3.9] bpo-42059: Fix required/optional keys for TypedDict(..., total=False) (GH-22736) #23747
  • 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 2020-12-15.00:08:30.506>
    created_at = <Date 2020-10-17.09:23:29.914>
    labels = ['type-bug', 'library', '3.9']
    title = 'TypedDict(...) as function does not respect "total" when setting __required_keys__ and __optional_keys__'
    updated_at = <Date 2021-04-12.17:17:21.534>
    user = 'https://github.com/agronholm'

    bugs.python.org fields:

    activity = <Date 2021-04-12.17:17:21.534>
    actor = 'gvanrossum'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-12-15.00:08:30.506>
    closer = 'brandtbucher'
    components = ['Library (Lib)']
    creation = <Date 2020-10-17.09:23:29.914>
    creator = 'alex.gronholm'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42059
    keywords = ['patch']
    message_count = 9.0
    messages = ['378805', '378819', '378820', '382702', '382851', '383010', '387885', '390822', '390870']
    nosy_count = 6.0
    nosy_names = ['gvanrossum', 'alex.gronholm', 'levkivskyi', 'miss-islington', 'brandtbucher', 'domdfcoding']
    pr_nums = ['22736', '23747']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42059'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions