Skip to content

Commit 5765aa3

Browse files
authored
Fix invalid type: ignore that causes mypy to ignore the whole file (#4618)
1 parent 1fb5127 commit 5765aa3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
- opentelemetry-sdk: Fix invalid `type: ignore` that causes mypy to ignore the whole file
11+
([#4618](https://github.com/open-telemetry/opentelemetry-python/pull/4618))
12+
1013
## Version 1.34.0/0.55b0 (2025-06-04)
1114

1215
- typecheck: add sdk/resources and drop mypy

opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# type: ignore[reportDeprecated] # ResourceAttributes is deprecated
16-
1715
"""
1816
This package implements `OpenTelemetry Resources
1917
<https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/sdk.md#resource-sdk>`_:
@@ -58,6 +56,9 @@
5856
above example.
5957
"""
6058

59+
# ResourceAttributes is deprecated
60+
# pyright: reportDeprecated=false
61+
6162
import abc
6263
import concurrent.futures
6364
import logging

0 commit comments

Comments
 (0)