Skip to content

functools.singledispatch does not support Union types #90172

@evansd

Description

@evansd
mannequin
BPO 46014
Nosy @rhettinger, @ambv, @uriyyo, @AlexWaygood, @evansd
PRs
  • bpo-46014: Add ability to use typing.Union with singledispatch #30017
  • bpo-46014: Add docs regarding functools.singledispatch changes #32282
  • 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-12-10.23:29:02.779>
    created_at = <Date 2021-12-08.13:34:12.625>
    labels = ['type-feature', 'library', '3.9', '3.10', '3.11']
    title = 'functools.singledispatch does not support Union types'
    updated_at = <Date 2022-04-03.08:22:50.956>
    user = 'https://github.com/evansd'

    bugs.python.org fields:

    activity = <Date 2022-04-03.08:22:50.956>
    actor = 'uriyyo'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-12-10.23:29:02.779>
    closer = 'lukasz.langa'
    components = ['Library (Lib)']
    creation = <Date 2021-12-08.13:34:12.625>
    creator = 'evansd'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46014
    keywords = ['patch']
    message_count = 6.0
    messages = ['408018', '408261', '408262', '408272', '409366', '409369']
    nosy_count = 6.0
    nosy_names = ['rhettinger', 'wrobell', 'lukasz.langa', 'uriyyo', 'AlexWaygood', 'evansd']
    pr_nums = ['30017', '32282']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue46014'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9only security fixesstdlibStandard 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