You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I believe this is a duplicate of #3247. There aren't many good solutions here -- I typically recommend just not using the FBT rules (which are quite rigid and opinionated) if you're not working in a fairly strict project or setting.
In my case this is calls from
pygame
, for example: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.
The text was updated successfully, but these errors were encountered: