From ae7516b8a16d625c05258570c74e242f1cf64e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= <16805946+edgarrmondragon@users.noreply.github.com> Date: Mon, 11 Nov 2024 11:21:38 -0600 Subject: [PATCH] chore: Use `importlib.resources` from the standard library (#2752) 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"