Skip to content

Add ignore_first_metatype_parameter boolean option to function_default_parameter_at_end #6881

Open

Description

@rgoldberg

New Issue Checklist

Feature or Enhancement Proposal

Please add a ignore_first_metatype_parameter boolean option to function_default_parameter_at_end that, when true, ignores the first metatype parameter (i.e. a parameter whose type is is *.Type; e.g., see this).

Metatype parameters with default arguments generally belong at the front of their parameter list due to English grammar, and they are frequent enough to warrant an ignore option.

Defaulting to false would mimic current behavior, but I bet it wouldn't be that bad to default to true, because that wouldn't generate false positives, and I doubt it would generate false negatives.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions