Fix type checking for built in metric exporters by aabmass · Pull Request #4820 · open-telemetry/opentelemetry-python

Description

This fixes errors about unknown type for users using InMemoryMetricExporter and ConsoleMetricExporter. Also removed a bunch of paths from pyright excludes to expand type checking coverage

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Enabled pyright on this file

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated