title: What is the easiest / most pythonic way of create a Literal from an enum values?
body: <p>As the question suggests, imagine the following <code>Enum</code>:</p>
  <pre class="lang-py prettyprint-override"><code>class Suits(Enum):
      CLUBS = &quot;CLUBS&quot;
      DIAMONDS = &quot;DIAMONDS&quot;
      HEARTS = &quot;HEARTS&quot;
      SPADES = &quot;SPADES&quot;
  </code></pre>
  <p>I want to create a <code>Literal</code> from the <code>Enum</code> values. The only way I managed to do it:</p>
  <pre class="lang-py prettyprint-override"><code>Suit = Literal[Suits.CLUBS, Suits.DIAMONDS, Suits.HEARTS, Suits.SPADES]
  </code></pre>
  <p>Which is fine for small enums, but tiring and very error prone for bigger ones.</p>
  <p>Hence my question, is there a better way of accomplishing the <code>Literal</code> creation?</p>
  <hr />
  <p>EDIT</p>
  <p>As pointed out by <a href="https://stackoverflow.com/users/1126841/chepner">@chepner</a> in the comments, we can (should?) use the <code>Enum</code> for type checking</p>