Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIDY FIRST] Fix typing issues in dbt/core/tasks/clean.py #10617

Merged
merged 3 commits into from
Aug 27, 2024

Conversation

QMalcolm
Copy link
Contributor

Resolves #10616

Problem

There were type issues in dbt/core/tasks/clean.py

Solution

Fix the typing issues in dbt/core/tasks/clean.py

Checklist

  • I have read the contributing guide and understand what's expected of me.
  • I have run this code in development, and it appears to resolve the stated issue.
  • This PR includes tests, or tests are not required or relevant for this PR.
  • This PR has no interface changes (e.g., macros, CLI, logs, JSON artifacts, config files, adapter interface, etc.) or this PR has already received feedback and approval from Product or DX.
  • This PR includes type annotations for new and modified functions.

The `warn` method id `deprecations.py` wasn't typed. Because of this,
calling to the method elsewhere would raise typing errors of calling
to an "untyped method"
@QMalcolm QMalcolm added the tidy_first "Tidy First" incremental cleanup changes label Aug 27, 2024
@QMalcolm QMalcolm requested a review from a team as a code owner August 27, 2024 16:52
@cla-bot cla-bot bot added the cla:yes label Aug 27, 2024
Copy link

codecov bot commented Aug 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.10%. Comparing base (f25a474) to head (a1e4086).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10617      +/-   ##
==========================================
- Coverage   88.91%   86.10%   -2.81%     
==========================================
  Files         180      180              
  Lines       22760    22760              
==========================================
- Hits        20237    19598     -639     
- Misses       2523     3162     +639     
Flag Coverage Δ
integration 86.10% <100.00%> (-0.12%) ⬇️
unit ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Unit Tests 86.10% <100.00%> (-2.81%) ⬇️
Integration Tests 86.10% <100.00%> (-0.12%) ⬇️

@QMalcolm QMalcolm merged commit e1fa461 into main Aug 27, 2024
76 of 78 checks passed
@QMalcolm QMalcolm deleted the qmalcolm--10616-add-type-hints-task-clean branch August 27, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes tidy_first "Tidy First" incremental cleanup changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add missing type hints in core/dbt/task/clean.py
2 participants