Skip to content

functools.singledispatchfunction has confusing error message if no positional arguments are passed in #85294

Closed
@mgrandi

Description

@mgrandi
mannequin
BPO 41122
Nosy @rhettinger, @ambv, @mgrandi, @ammaraskar, @mental32, @AlexWaygood
PRs
  • gh-85294: Handle missing arguments to @singledispatchmethod gracefully #21471
  • bpo-41122: Check for required positional argument in singledispatchmethod invocation #23212
  • 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 = None
    created_at = <Date 2020-06-26.03:29:31.194>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'functools.singledispatchfunction has confusing error message if no positional arguments are passed in'
    updated_at = <Date 2021-11-05.16:40:42.304>
    user = 'https://github.com/mgrandi'

    bugs.python.org fields:

    activity = <Date 2021-11-05.16:40:42.304>
    actor = 'AlexWaygood'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-06-26.03:29:31.194>
    creator = 'markgrandi'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41122
    keywords = ['patch']
    message_count = 1.0
    messages = ['372406']
    nosy_count = 6.0
    nosy_names = ['rhettinger', 'lukasz.langa', 'markgrandi', 'ammar2', 'mental', 'AlexWaygood']
    pr_nums = ['21471', '23212']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41122'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.13bugs and security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions