Skip to content

typing.Literal[True] is implicitly converted to typing.Literal[1] #89842

@vanburgerberg

Description

@vanburgerberg
BPO 45679
Nosy @gvanrossum, @rhettinger, @serhiy-storchaka, @miss-islington, @sobolevn, @Fidget-Spinner, @vanburgerberg
PRs
  • bpo-45679: Do not cache typing.Literal with more than one type arg #29333
  • bpo-45679: Fix caching of multi-value typing.Literal #29334
  • bpo-45679: add tuple tests with lru_cache to test_functools #29339
  • [3.10] bpo-45679: Fix caching of multi-value typing.Literal (GH-29334) #29340
  • [3.9] bpo-45679: Fix caching of multi-value typing.Literal (GH-29334) #29342
  • 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 2021-11-03.09:45:01.789>
    created_at = <Date 2021-10-30.15:33:26.761>
    labels = ['3.8', 'type-bug', 'library', '3.9', '3.10']
    title = 'typing.Literal[True] is implicitly converted to typing.Literal[1]'
    updated_at = <Date 2021-11-05.19:52:54.863>
    user = 'https://github.com/vanburgerberg'

    bugs.python.org fields:

    activity = <Date 2021-11-05.19:52:54.863>
    actor = 'rhettinger'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-11-03.09:45:01.789>
    closer = 'kj'
    components = ['Library (Lib)']
    creation = <Date 2021-10-30.15:33:26.761>
    creator = 'vanburgerberg'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45679
    keywords = ['patch']
    message_count = 9.0
    messages = ['405371', '405375', '405376', '405377', '405394', '405395', '405592', '405598', '405825']
    nosy_count = 7.0
    nosy_names = ['gvanrossum', 'rhettinger', 'serhiy.storchaka', 'miss-islington', 'sobolevn', 'kj', 'vanburgerberg']
    pr_nums = ['29333', '29334', '29339', '29340', '29342']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45679'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.8 (EOL)end of life3.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