Skip to content

Fix type issues#443

Merged
mathialo merged 1 commit into
masterfrom
fix-mypy
Jun 4, 2025
Merged

Fix type issues#443
mathialo merged 1 commit into
masterfrom
fix-mypy

Conversation

@mathialo

@mathialo mathialo commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

A new version of mypy revealed some new type errors:

  • we were passing nullable strings to expandvars, which does not take Nones. The .get was not necessary here anyway because of the check earlier
  • we were ignoring the SecretClient, which is not necessary. It was slightly wrongly typed which probably why it was ignored.

A new version of `mypy` revealed some new type errors:

 * we were passing nullable strings to expandvars, which does not take
   `None`s. The `.get` was not necessary here anyway because of the
   check earlier
 * we were ignoring the `SecretClient`, which is not necessary. It was
   slightly wrongly typed which probably why it was ignored.
@codecov

codecov Bot commented Jun 4, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 77.34%. Comparing base (316c049) to head (b4e367b).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
cognite/extractorutils/configtools/loaders.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #443      +/-   ##
==========================================
+ Coverage   77.32%   77.34%   +0.02%     
==========================================
  Files          42       42              
  Lines        3524     3523       -1     
==========================================
  Hits         2725     2725              
+ Misses        799      798       -1     
Files with missing lines Coverage Δ
cognite/extractorutils/configtools/loaders.py 83.78% <83.33%> (-0.08%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mathialo
mathialo marked this pull request as ready for review June 4, 2025 08:26
@mathialo
mathialo requested a review from a team as a code owner June 4, 2025 08:26
@mathialo mathialo added the waiting-for-risk-review Waiting for a member of the risk review team to take an action label Jun 4, 2025

@larshagencognite larshagencognite left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🦄

@larshagencognite larshagencognite self-assigned this Jun 4, 2025
@larshagencognite larshagencognite added risk-review-ongoing Risk review is in progress waiting-for-team Waiting for the submitter or reviewer of the PR to take an action and removed waiting-for-risk-review Waiting for a member of the risk review team to take an action labels Jun 4, 2025
@mathialo
mathialo merged commit 177013a into master Jun 4, 2025
@mathialo
mathialo deleted the fix-mypy branch June 4, 2025 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk-review-ongoing Risk review is in progress waiting-for-team Waiting for the submitter or reviewer of the PR to take an action

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants