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
I wanted to suggest it to flake8-simplify but there hasn't been much activity there in a while, and flake8-pie says they're deprecated and link to ruff.
x = ...
- y = x if x else 'default'+ y = x or 'default'
It could be a bit confusing to newcomers, but cleaner, imo, to anyone familiar with ternaries in Python.
The text was updated successfully, but these errors were encountered:
I wanted to suggest it to
flake8-simplify
but there hasn't been much activity there in a while, andflake8-pie
says they're deprecated and link to ruff.It could be a bit confusing to newcomers, but cleaner, imo, to anyone familiar with ternaries in Python.
The text was updated successfully, but these errors were encountered: