Skip to content

argparse: type=<callable> doesn't honor nargs > 1 #66248

@ChrisBruner

Description

@ChrisBruner
BPO 22049
Nosy @bitdancer
Files
  • argparse_typedef_bug.py: Reproducer
  • 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 2017-03-28.16:50:13.951>
    created_at = <Date 2014-07-23.17:16:22.349>
    labels = ['type-bug', 'invalid', 'docs']
    title = "argparse: type=<callable> doesn't honor nargs > 1"
    updated_at = <Date 2017-03-28.16:50:13.950>
    user = 'https://bugs.python.org/ChrisBruner'

    bugs.python.org fields:

    activity = <Date 2017-03-28.16:50:13.950>
    actor = 'paul.j3'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2017-03-28.16:50:13.951>
    closer = 'paul.j3'
    components = ['Documentation']
    creation = <Date 2014-07-23.17:16:22.349>
    creator = 'Chris.Bruner'
    dependencies = []
    files = ['36048']
    hgrepos = []
    issue_num = 22049
    keywords = []
    message_count = 6.0
    messages = ['223748', '223756', '223916', '223975', '224009', '224240']
    nosy_count = 4.0
    nosy_names = ['r.david.murray', 'docs@python', 'paul.j3', 'Chris.Bruner']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue22049'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      docsDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or error
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions