This is an automated email from the ASF dual-hosted git repository. gstein pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/steve.git
commit e39c347e1ff2facb022619c2008aec5e28db7ef6 Author: Greg Stein <[email protected]> AuthorDate: Tue Jun 7 00:41:56 2022 -0500 add a function to return the module for a vote type --- v3/steve/vtypes/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/v3/steve/vtypes/__init__.py b/v3/steve/vtypes/__init__.py index db459b3..97a43ec 100644 --- a/v3/steve/vtypes/__init__.py +++ b/v3/steve/vtypes/__init__.py @@ -20,3 +20,10 @@ TYPES = { 'yna', 'stv' } from . import yna from . import stv + + +def vtype_module(vtype): + "Return the vote type's module." + assert vtype in TYPES + + return globals()[vtype]
