title: Python 3 Enumeration List Value doesn't support membership test
body: <pre><code>from enum import IntEnum
  from typing import List
  class EnumClass(IntEnum):
     A = 1
     B = 2
  
     @staticmethod
     def listofconditions() -&gt; 'List[EnumClass]':
        return [EnumClass.A.numerator, \
                EnumClass.B.numerator]
  
  
  if 1 in EnumClass.listofconditions:
      pass
  </code></pre>
  
  <p>yields:</p>
  
  <pre><code>[pylint]:E1135 Value 'EnumClass.listofconditions' doesn't support membership test
  </code></pre>
  
  <p>(I posted this for others Googling a solution to this cryptic message in order to makes sense of it. Solution to follow)</p>