Fixing Ruff function-call-in-default-argument (B008)
causes test collection errors
#6945
Labels
function-call-in-default-argument (B008)
causes test collection errors
#6945
If the bug is related to a specific library below, please raise an issue in the
respective repo directly: TFX
System information
Interactive Notebook, Google Cloud, etc): Linux
pip freeze
output):Describe the current behavior
Fixing Ruff rule B008 causes
test collection failures in the files
This is an important bug/linting violation to fix because it can lead to unexpected behavior.
Quoted from the Ruff website:
Describe the expected behavior
We should be able to apply the diffs below without experiencing test collection errors (also shown below)
Standalone code to reproduce the issue
Other info / logs
Here are the errors that the above diffs cause when collecting tests with pytest:
The text was updated successfully, but these errors were encountered: