title: How can I hint that a type is comparable with typing
body: <p>Say I want to write a comparison sorting function, I can hint that the input must be a sequence with <code>Sequence[T]</code> (or <code>MutableSequence[T]</code> in this case).</p>
  
  <pre><code>from typing import MutableSequence, T
  
  def comparison_sort(s: MutableSequence[T]) -&gt; None:
      pass
  </code></pre>
  
  <p>However there does not seems to be an out-of-the box way to hint that <code>T</code> must be comparable. (There is no <code>Comparable</code> or <code>Ordered</code> or anything it seems in <code>typing</code>.) How can I achieve this? I would like to avoid specifying a specific set of types, like <code>int</code>, <code>float</code>, 'str` so that a user could also hint that their own type is comparable.</p>