rstudio / vetiver-python

Version, share, deploy, and monitor models.
https://rstudio.github.io/vetiver-python/stable/
MIT License
60 stars 17 forks source link

Replace top-level star imports with explicit imports #144

Closed machow closed 1 year ago

machow commented 1 year ago

It looks like vetiver is doing star imports in vetiver/__init__.py for a couple modules, e.g.

from .protoype import *

This is causing things that were defined / imported in modules like prototype to get imported at the top level. For example, because prototype uses from warnings import warn, this ends up on vetiver:

import vetiver
vetiver.warn