changeset 8849:618e09120d47

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.
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 14 Jan 2021 21:46:10 +0100
parents 574cd37f05c4
children 755b2c66b462
files kallithea/bin/kallithea_cli_db.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/bin/kallithea_cli_db.py	Wed Jan 20 00:54:55 2021 +0100
+++ b/kallithea/bin/kallithea_cli_db.py	Thu Jan 14 21:46:10 2021 +0100
@@ -15,6 +15,8 @@
 
 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