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] add typing to dbt/cli/exceptions.py #10619

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

emmyoop
Copy link
Member

@emmyoop emmyoop commented Aug 27, 2024

Resolves #

Problem

Missing typing for dbt/cli/exceptions.py

Solution

Add typing for dbt/cli/exceptions.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.

@cla-bot cla-bot bot added the cla:yes label Aug 27, 2024
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

Copy link

codecov bot commented Aug 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.85%. Comparing base (2218140) to head (35e1652).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10619      +/-   ##
==========================================
- Coverage   88.86%   88.85%   -0.02%     
==========================================
  Files         180      180              
  Lines       22762    22765       +3     
==========================================
- Hits        20228    20227       -1     
- Misses       2534     2538       +4     
Flag Coverage Δ
integration 86.09% <100.00%> (-0.02%) ⬇️
unit 62.33% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
Unit Tests 62.33% <100.00%> (+<0.01%) ⬆️
Integration Tests 86.09% <100.00%> (-0.02%) ⬇️

@emmyoop emmyoop changed the title add typing to dbt/cli/exceptions.py [Tidy First] add typing to dbt/cli/exceptions.py Aug 28, 2024
@emmyoop emmyoop added the Skip Changelog Skips GHA to check for changelog file label Aug 28, 2024
@emmyoop emmyoop marked this pull request as ready for review August 28, 2024 15:10
@emmyoop emmyoop requested a review from a team as a code owner August 28, 2024 15:10
Copy link
Contributor

@QMalcolm QMalcolm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for doing this work ❤️

Comment on lines +39 to +46
result: Union[
bool, # debug
CatalogArtifact, # docs generate
List[str], # list/ls
Manifest, # parse
None, # clean, deps, init, source
RunExecutionResult, # build, compile, run, seed, snapshot, test, run-operation
] = None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woof the fact that that is the type signature is rough 🙃 but I'm glad it's typed now!

@gshank gshank added the tidy_first "Tidy First" incremental cleanup changes label Aug 28, 2024
@emmyoop emmyoop merged commit d652359 into main Aug 28, 2024
82 of 84 checks passed
@emmyoop emmyoop deleted the er/typing/cli/exceptions branch August 28, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes Skip Changelog Skips GHA to check for changelog file tidy_first "Tidy First" incremental cleanup changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants