From 5c2b530b1b6e83595946373c41955138df166255 Mon Sep 17 00:00:00 2001 From: tlestang Date: Thu, 16 Apr 2026 15:51:40 +0200 Subject: [PATCH 1/2] Import Set from typing --- src/vortex/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vortex/__init__.py b/src/vortex/__init__.py index 63ba965b..85fc3d5a 100644 --- a/src/vortex/__init__.py +++ b/src/vortex/__init__.py @@ -24,6 +24,7 @@ import copy from pathlib import Path import sys +from typing import Set # Python 3.7 compat # importlib.metadata included in stdlib from 3.8 onwards. # For older versions, import third-party importlib_metadata @@ -135,7 +136,7 @@ def vortexfpdefaults(): _LOADED_PLUGINS.add(plugin.name) -def loaded_plugins() -> set[str]: +def loaded_plugins() -> Set[str]: """Return the set of names for loaded plugins **Example:** From 1d31090ecc9a746f6f34cea063dbcf295141597c Mon Sep 17 00:00:00 2001 From: tlestang Date: Thu, 16 Apr 2026 15:51:51 +0200 Subject: [PATCH 2/2] Ensure importlib_metadata >= 3.6 --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1e9b925e..20a0b31c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,8 @@ dependencies = [ "taylorism", "tomli", "arpifs_listings", - "importlib_metadata; python_version < '3.8'", + # Selectable entrypoints from importlib_metadata 3.6 + "importlib_metadata>=3.6; python_version < '3.8'", "pyyaml", ]