Skip to content

Make all arguments that accept a bool into keyword-only arguments #76

Open

Description

@namurphy

There are a bunch of ruff rule violations for FBT001 and FBT002. We should fix those by making arguments that expect a bool into keyword-only arguments by putting an asterisk before them in the function definition, e.g.:

def f(posarg, *, keyword_only_arg):
    ...

This one should be straightforward to address with an AI tool, especially since it can update usages too.

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