From 959a68f4405a9981b83a00228e6eca684d112952 Mon Sep 17 00:00:00 2001 From: "Sup#2.0" <102817779+Sup2point0@users.noreply.github.com> Date: Tue, 14 May 2024 12:39:25 +0100 Subject: [PATCH] level up imports --- wl.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wl.py b/wl.py index c9baf5c..95d6c23 100644 --- a/wl.py +++ b/wl.py @@ -4,4 +4,9 @@ # importing weighted-list takes a little fiddling, since it has a hyphen in the name... import importlib -WeightedList = importlib.import_module(".weighted-list.python", "suptools").WeightedList +wl = importlib.import_module(".weighted-list.python", "suptools") + +__all__ = ["WeightedItem", "WeightedList"] + +WeightedItem = wl.WeightedItem +WeightedList = wl.WeightedList