The solution was provided in this thread here:
https://discuss.python.org/t/extended-import-syntax-for-aliasing-module-attributes/95920/3
The correct way to implement is:
import module
from module import optimize, validate as check
-- 
https://mail.python.org/mailman3//lists/python-list.python.org

Reply via email to