I have the following example function:
def example(inp):
if not isinstance(inp, list):
return 'Not list'
else:
return 'List'
>>> example('asdf')
'Not list'
>>> example(['asdf',])
'List'
And yet pylint complains that:
no-else-return: Unnecessary "else" after "return"
Why does it raise that warning, which seems so silly?