[Bug]: FURB143 suggesting change that isn't compatible with the context of code #283
Open
1 of 2 tasks
Labels
bug
Something isn't working
Has your issue already been fixed?
master
branch? See the docs for instructions on how to setup a local build of Refurb.The Bug
The following code:
Emits the following error:
But it should not be emitting an error instance because...
The recommended code change will break the code when the input string is None as None type and string can't be concatenated.
Version Info
Python Version
3.11.4
Config File
Extra Info
I hacked the actual example line to be more minimal but this is my example of rule FURB143 being incorrectly applied where coercing a None to a string makes sense and it isn't simply mapping one falsey type to another as the recommended change would break the code.
The text was updated successfully, but these errors were encountered: