Skip to content

Commit

Permalink
[TIDY FIRST] Fix typing issues in dbt/core/tasks/clean.py (#10617)
Browse files Browse the repository at this point in the history
  • Loading branch information
QMalcolm authored Aug 27, 2024
1 parent 1153597 commit e1fa461
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Under the Hood-20240827-114810.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Under the Hood
body: Fix type errors in `dbt/core/task/clean.py`
time: 2024-08-27T11:48:10.438173-05:00
custom:
Author: QMalcolm
Issue: "10616"
2 changes: 1 addition & 1 deletion core/dbt/deprecations.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def cb():
return cb


def warn(name, *args, **kwargs):
def warn(name: str, *args, **kwargs) -> None:
if name not in deprecations:
# this should (hopefully) never happen
raise RuntimeError("Error showing deprecation warning: {}".format(name))
Expand Down
2 changes: 1 addition & 1 deletion core/dbt/task/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, args: Flags, config: Project):
self.config = config
self.project = config

def run(self):
def run(self) -> None:
"""
This function takes all the paths in the target file
and cleans the project paths that are not protected.
Expand Down

0 comments on commit e1fa461

Please sign in to comment.