if \"aa\" or \"bb\" or \"cc\" or \"dd\" or \"ee\" or \"ff\" in attrs[\"show\"]:
self.xx = xxxx
I have a code like this, to check if attrs[\"sho
Your IF statement is not testing for anything. It WILL always evaluate as true, because of the way it is written.
You are asking python:
Is aa true
Is bb true
...
Python says 'Yes, "aa" is true, because its there!'
Correct your if statement or find a better way to find the values in the list:
any(x in ['aa','bb','cc','dd','ee','ff'] for x in attrs["show"])