title: Type hint function where return type depends on input list item type
body: <p>What is the best type hint for a function that returns an item from an input argument which is a list?</p>
  <p>Here is the function:</p>
  <pre class="lang-py prettyprint-override"><code>def ask_mcq(title: str, prompt: str, options: list) -&gt; ???:
      ...snip...
      v = tk.IntVar()
      for i, option in enumerate(options):
          tk.Radiobutton(root, text=option, variable=v, value=i).pack(anchor=&quot;w&quot;)
      ...snip...
      return options[v.get()]
  </code></pre>
  <p>I tried checking other questions, like <a href="https://stackoverflow.com/questions/52445559/how-can-i-type-hint-a-function-where-the-return-type-depends-on-the-input-type-o">this one</a>, but none of them seem to answer this question in specific. I am not an expert.</p>
  <hr />
  <p><strong>EDIT:</strong> By reading the comments and answers, I realize now that the question doesn't really make sense in the case where I ask the user to choose an option. It's better to return a string and handle it afterwards. I accepted @balderman's answer because it's the most applicable to this unlikely situation.</p>