Fix type check failure stemming from new pytest release (#9798)
The release of pytest 6.2 broke mypy's type checking of itself, since pytest 6.2 drops support for Python 3.5 (https://docs.pytest.org/en/stable/changelog.html#pytest-6-2-0-2020-12-12)
Co-authored-by: hauntsaninja <>