From cbdbaf0fe216938be45dd6ea3f5f771651cf34d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Mon, 11 Nov 2024 11:10:59 -0600 Subject: [PATCH] chor: Use `importlib.resources` from the standard library --- singer_sdk/testing/templates.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/singer_sdk/testing/templates.py b/singer_sdk/testing/templates.py index 302fc7efd..8a21f639c 100644 --- a/singer_sdk/testing/templates.py +++ b/singer_sdk/testing/templates.py @@ -3,10 +3,10 @@ from __future__ import annotations import contextlib +import importlib.resources import typing as t import warnings -from singer_sdk.helpers._compat import importlib_resources from singer_sdk.testing import target_test_streams if t.TYPE_CHECKING: @@ -337,4 +337,4 @@ def singer_filepath(self) -> Traversable: Returns: The expected Path to this tests singer file. """ - return importlib_resources.files(target_test_streams) / f"{self.name}.singer" + return importlib.resources.files(target_test_streams) / f"{self.name}.singer"