wrong refactoring by telling "assignment can be replaced with augmented assignment"

if not bug_url.startswith(base_url):
        bug_url = base_url + bug_url

In the code above, bug_url and base_url are 2 strings. PyCharm tells that the 2nd line can be replaced with "bug_url += base_url", which is incorrect.

Please sign in to leave a comment.