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
Checks for the use of boolean positional arguments in function definitions, as determined by the presence of a bool type hint.
Calling a function with boolean positional arguments is confusing as the meaning of the boolean value is not clear to the caller and to future readers of the code.
The use of a boolean will also limit the function to only two possible behaviors, which makes the function difficult to extend in the future.
The text was updated successfully, but these errors were encountered:
The problem
Please use named parameter in the save method so that we can activate
factory_boy/factory/declarations.py
Lines 683 to 684 in d6349de
Proposed solution
Extra notes
Checks for the use of boolean positional arguments in function definitions, as determined by the presence of a bool type hint.
Calling a function with boolean positional arguments is confusing as the meaning of the boolean value is not clear to the caller and to future readers of the code.
The use of a boolean will also limit the function to only two possible behaviors, which makes the function difficult to extend in the future.
The text was updated successfully, but these errors were encountered: