The indentation is a bit odd here, it gives the impression that the second line is still in the isinstance()