Changeset - 618e09120d47
[Not reviewed]
default
0 1 0
Mads Kiilerich (mads) - 5 years ago 2021-01-14 21:46:10
mads@kiilerich.com
bin: add missing imports

Spotted by pytype --strict-import:
File "kallithea/bin/kallithea_cli_db.py", line 73, in db_create: No attribute 'utils' on module 'kallithea.lib' [module-attr]
File "kallithea/bin/kallithea_cli_db.py", line 73, in db_create: No attribute 'scm' on module 'kallithea.model' [module-attr]

It happened to work anyway due to the import chain ... but it is better to be
explicit.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
kallithea/bin/kallithea_cli_db.py
Show inline comments
 
@@ -15,6 +15,8 @@ import click
 

	
 
import kallithea
 
import kallithea.bin.kallithea_cli_base as cli_base
 
import kallithea.lib.utils
 
import kallithea.model.scm
 
from kallithea.lib.db_manage import DbManage
 
from kallithea.model import meta
 

	
0 comments (0 inline, 0 general)