title: How to specify mypy type pytest_configure fixtures?
body: <p>I am trying to specify mypy type hints for the pytest native fixtures I am using in my test project e.g.:</p>
  <pre><code>import pytest
  
  def pytest_configure(config):
      # Do something useful here
  </code></pre>
  <p>The <code>config</code> fixture returns a <code>_pytest.config.Config</code> object. If I try to model this naively:</p>
  <pre><code>import pytest
  
  def pytest_configure(config: Config) -&gt; None:
      # Do something useful here
  </code></pre>
  <p>I receive a mypy error:
  <code>conftest.py:3: error: Name 'Config' is not defined  [name-defined]</code></p>
  <p>I could do <code>from _pytest.config import Config</code>, but this doesn't seem to be a good way, because _pytest is private.
  Another option would be to ignore the type with <code># type: ignore</code>. If this is the recommended way I would of course do this, but I wonder if there is a better option.</p>
  <p>I have the same issues in with any kind of pytest native fixtures I use, e.g. <code>request</code> which is used for parameterized fixtures. This would be a <code>_pytest.fixtures.FixtureRequest</code>.</p>