From e3515f58545a83745d7552758fd9435daec6999f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20J=C4=99drusiak?= Date: Thu, 31 Oct 2024 13:00:51 +0100 Subject: [PATCH] explicit imports --- NEWS.md | 1 + velesresearch/__init__.py | 32 ++++++++++++++++++++++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index a557d06..59b8fd1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -7,6 +7,7 @@ * Added `pauseBuild` arg to `SurveyModel.build()` to prevent the survey from being built when created. * Added `surveyFromJson()` function to create a survey from a json file made with the visual creator. * Themes have been implemented. See `themeFile` argument in the `SurveyModel` class. +* Imports in __init__.py are now explicit. ## 0.3.2 diff --git a/velesresearch/__init__.py b/velesresearch/__init__.py index 114c21e..44fac2d 100644 --- a/velesresearch/__init__.py +++ b/velesresearch/__init__.py @@ -1,4 +1,32 @@ "VelesResearch main functionality." -from .wrappers import * -from .validators import * +from .wrappers import ( + survey, + page, + panel, + dropdown, + text, + checkbox, + ranking, + radio, + dropdownMultiple, + textLong, + rating, + yesno, + info, + matrix, + matrixDropdown, + matrixDynamic, + slider, + image, + consent, + surveyFromJson, +) +from .validators import ( + numberValidator, + textValidator, + emailValidator, + expressionValidator, + answerCountValidator, + regexValidator, +) from .utils import convertImage, getJS