Skip to content
Prev Previous commit
Next Next commit
Ignore types in the import hacks
(tests still fail b/c typing_extensions is not installed)
  • Loading branch information
max-sixty committed Oct 5, 2022
commit 5a8fd1e90d3820ecafe394d8c6577e0146b2d60e
7 changes: 4 additions & 3 deletions core/dbt/parser/_dbt_prql.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
from collections import defaultdict

try:
import prql_python
import prql_python # type: ignore
except ModuleNotFoundError:
# Always return the same SQL, mocking the prqlc output, so we can test this without
# configuring dependencies. (Obv fix as we expand the tests, way before we merge.)
# Always return the same SQL, mocking the prqlc output for a single case which we
# currently use in tests, so we can test this without configuring dependencies. (Obv
# fix as we expand the tests, way before we merge.)
class prql_python: # type: ignore
@staticmethod
def to_sql(prql):
Expand Down
2 changes: 1 addition & 1 deletion core/dbt/parser/language_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


try:
import dbt_prql
import dbt_prql # type: ignore
except ImportError:
dbt_prql = None

Expand Down