WebwareForPython / DBUtils

Database connections for multi-threaded environments
MIT License
331 stars 52 forks source link

Are Python boolean traps worth fixing? #49

Open cclauss opened 1 year ago

cclauss commented 1 year ago

% ruff --select=FBT --statistics .

93  FBT003  Boolean positional value in function call
12  FBT002  Boolean default value in function definition

My sense is that it breaks too much to fix them now but it is an interesting insight.

Cito commented 1 year ago

The main problem here is that DBUtils does not support keyword-only parameters for the constructors of its classes.

This should be changed, but probably only in the next major version since this would break backward compatibility.