Closed sanderploegsma closed 9 months ago
Hi @sanderploegsma, thank you for reporting this.
Yes, you are correct, this is a bug. The analyzer in this file does not expect a module attribute as a default argument, only the string "none"
.
I believe the fix would be to replace all instances of "none"
in that file and replace it by _ignore
. I don't think we will miss anything, because the tests check the value of the argument.
Would you be willing to make that change? It would also require new tests (like your solution) for test_exercise_analysis "using default arguments for new"
in this file.
Thanks for the detailed description! Yes I’d like to open a PR to fix it. 😁
The analyzer suggested to use a default argument when defining the function
RemoteControlCar.new()
on the solution below. I believe that is what I'm doing, so I wonder whether this is a bug in the analyzer.