Fix the type hint of _metrics_data within InMemoryMetricReader by phillipuniverse · Pull Request #4837 · open-telemetry/opentelemetry-python

@phillipuniverse

This gets initialized to None, so the type hint should be MetricsData | None

@phillipuniverse

xrmx

@xrmx

@xrmx

xrmx

xrmx approved these changes Dec 10, 2025

@xrmx xrmx enabled auto-merge (squash)

December 10, 2025 10:43

JWinermaSplunk pushed a commit to JWinermaSplunk/opentelemetry-python that referenced this pull request

Feb 17, 2026
…telemetry#4837)

* Fix the type hint of _metrics_data within InMemoryMetricReader

This gets initialized to None, so the type hint should be MetricsData | None

* Add CHANGELOG entry

* Update CHANGELOG.md

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>

JWinermaSplunk pushed a commit to JWinermaSplunk/opentelemetry-python that referenced this pull request

Feb 17, 2026
…telemetry#4837)

* Fix the type hint of _metrics_data within InMemoryMetricReader

This gets initialized to None, so the type hint should be MetricsData | None

* Add CHANGELOG entry

* Update CHANGELOG.md

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>