== operator complaining when comparing to an empty list

PyCharm IDE is complaining when I do a comparison to an empty list using the == operator, but it doesn't complain when I use the is operator.