with the below code snipped in visual studio code editor
a = b.get('c') if b else None
d = a[1] if a else None
pylint is giving the following warning in the second line for a[1].Is it correct to show the warning? Shouldn't the check for None cover it ?
a: NoneType
Value 'a' is unsubscriptable pylint(unsubscriptable-object)