cmd: imports lazy (#5226)

They are not a major pain point though
This commit is contained in:
Saugat Pachhai
2021-01-07 11:45:58 +05:45
committed by GitHub
parent a9d620beda
commit a9ccf70439
6 changed files with 20 additions and 8 deletions
+2 -1
View File
@@ -3,13 +3,14 @@ import logging
from dvc.command import completion
from dvc.command.base import CmdBase, append_doc_link
from dvc.exceptions import DvcException
logger = logging.getLogger(__name__)
class CmdCommit(CmdBase):
def run(self):
from dvc.exceptions import DvcException
if not self.args.targets:
self.args.targets = [None]