Skip to content

FBT003: ruff reports about function calls from C-extentions #9287

@Paciupa

Description

@Paciupa

In my case this is calls from pygame, for example:

pygame.mouse.set_visible(False)

Ruff reports FBT003 Boolean positional value in function call.
If I try use keyword argument, I'll get TypeError: set_visible() takes no keyword arguments
And it happens with every function from every C-library that takes bool.
So the only solution now is suppress this message.
Ruff version: 0.1.9.

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