refactor: fix deprecated warning
@@ -92,6 +92,11 @@ def config_wrapper(ret: Any) -> None:
driver_cls.check_dep()
except NoMatches:
+ if sys.version_info >= (3, 10):
+ entry_points = importlib.metadata.entry_points().select(
+ name=namespace.DOWNLOAD_DELEGATE
+ )
+ else:
entry_points = importlib.metadata.entry_points()[
namespace.DOWNLOAD_DELEGATE
]
