Skip to content

Commit e5536ed

Browse files
committed
fix pre-commit, ignore deprecated warning
1 parent 25677d2 commit e5536ed

File tree

2 files changed

+3
-1
lines changed
  • exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/metric_exporter
  • opentelemetry-sdk/src/opentelemetry/sdk/resources

2 files changed

+3
-1
lines changed

exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/metric_exporter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
)
2929

3030
import requests
31-
from typing_extensions import deprecated
3231
from requests.exceptions import ConnectionError
32+
from typing_extensions import deprecated
3333

3434
from opentelemetry.exporter.otlp.proto.common._internal import (
3535
_create_exp_backoff_generator,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
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+
1517
"""
1618
This package implements `OpenTelemetry Resources
1719
<https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/sdk.md#resource-sdk>`_:

0 commit comments

Comments
 (0)