title: How to specify any/unknown/variant type in GDScript?
body: <p>Is there a way to specify an unknown type in GDScript?</p>
  <p>GDScript docs use the type <code>Variant</code> for this (for example in <a href="https://docs.godotengine.org/en/stable/classes/class_array.html#class-array-method-count" rel="nofollow noreferrer">Array.count</a> method).</p>
  <p>Say, I'd like to write an identity function. I can do it like so:</p>
  <pre><code>func identity(x):
      return x
  </code></pre>
  <p>But I'd like to declare that both the parameter type and return value could be anything. Something like:</p>
  <pre><code>func identity(x: Variant) -&gt; Variant:
      return x
  </code></pre>
  <p>This doesn't work though. <code>Variant</code> is not a known type name. I tried various names, bot nothing seems to work.</p>
  <p>Is the only option to leave off the type?</p>