Skip to content

Commit

Permalink
More docstrings and typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed Jul 17, 2023
1 parent cf5b7de commit a6ea918
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cosmos/dbt/executable.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import shutil


def get_system_dbt():
def get_system_dbt() -> str:
"""
Tries to identify which is the path to the dbt executable, return "dbt" otherwise.
"""
return shutil.which("dbt-ol") or shutil.which("dbt") or "dbt"

0 comments on commit a6ea918

Please sign in to comment.