Peter Jochum
Results
2
comments of
Peter Jochum
Here is another simple example that triggers R504: ```python def get_bar_if_exists(obj): result = "" if hasattr(obj, "bar"): result = str(obj.bar) return result # noqa: R504 - variable can be modified...
I also ran into this issue: ``` # Exception Cannot generate a unique value for user ``` ```python from django.contrib.auth.models import User ... # Relevant field in instantiated model user...