From 4bc845203825d4deb14cdaee2501e0c375644b23 Mon Sep 17 00:00:00 2001 From: Jacob Beck Date: Tue, 17 Dec 2019 11:13:33 -0700 Subject: [PATCH] Fix mypy checking Make mypy check our nested namespace packages by putting dbt in the mypy_path. Fix a number of exposed mypy/type checker complaints. The checker mostly passes now even if you add `--check-untyped-defs`, though there are a couple lingering issues so I'll leave that out of CI Change the return type of RunOperation a bit - adds a couple fields to appease mypy Also, bump the mypy version (it catches a few more issues). automatic commit by git-black, original commits: 32c567903922015e31ff2f4b0e04348f3eb65b21 9cc7a7a87fcfdc2c558b91c9316efb22bf3fdb27 --- core/dbt/task/list.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/dbt/task/list.py b/core/dbt/task/list.py index 3f26229f164..de8ff81ae0e 100644 --- a/core/dbt/task/list.py +++ b/core/dbt/task/list.py @@ -43,9 +43,7 @@ def __init__(self, args, config): super().__init__(args, config) if self.args.models: if self.args.select: - raise RuntimeException( - '"models" and "select" are mutually exclusive arguments' - ) + raise RuntimeException('"models" and "select" are mutually exclusive arguments') if self.args.resource_types: raise RuntimeException( '"models" and "resource_type" are mutually exclusive ' "arguments"