install mycfg stub along with the package

This commit is contained in:
Dima Gerasimov 2020-02-05 20:41:37 +00:00
parent 9cd93e5c05
commit b1d42a9f61
5 changed files with 9 additions and 2 deletions

View file

@ -6,7 +6,7 @@ except ImportError:
import warnings
warnings.warn("mycfg package isn't found! That might result in issues")
from . import fake_mycfg as mycfg # type: ignore[no-redef]
from . import mycfg_stub as mycfg # type: ignore[no-redef]
import sys
sys.modules['mycfg'] = mycfg
del sys