title: Function parameter type-setting returning SyntaxError
body: <p>I have a python script that contains a type declaration of function arguments as following:</p>
  
  <pre><code>def dump_var(v: Variable, name: str = None):
  </code></pre>
  
  <p>To my knowledge, this is a valid syntax that sets a type of input parameters to the function, but it returns a </p>
  
  <pre><code>SyntaxError: invalid syntax
  </code></pre>
  
  <p>What may be wrong?</p>