title: Python typehint int as positive
body: <p>I am curious what would be the best way to specify that a type is not just a <code>int</code> but a positive <code>int</code> in Python.</p>
  
  <p><strong>Examples:</strong></p>
  
  <pre class="lang-py prettyprint-override"><code># As function argument
  
  def my_age(age: int) -&gt; str:
      return f"You are {age} years old."
  
  
  # As class property
  
  class User:
      id: int
  </code></pre>
  
  <p>In both of these situations a negative value would be erroneous. It would be nice to be warned by my IDE/linter. </p>
  
  <p>Is there a simple way to specify an integer as positive using type-hints?</p>