The error I'm getting is:
[pylint] E1102:api_path.startswith is not callable
I checked but there's not much info about it:
http://pylint-messages.
The code works because the argument api_path is a string, so it indeed is callable. Of course if I change it to:
if str(api_path).startswith("
Then the error disappear. But I already know it is a string, and I've always read you shouldn't type-check in Python.
Can anyone shed some light? Thanks!