Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

transform: Fix type checks #692

Merged
merged 1 commit into from
Jul 26, 2023
Merged

transform: Fix type checks #692

merged 1 commit into from
Jul 26, 2023

Conversation

major
Copy link
Member

@major major commented Jul 26, 2023

Remove all of the @no_type_check markers and use the connection.DataEntry type with all transformers. There are still some issues with passing a list to DataEntry when it expects to have a dictionary or None as its second argument.

Because if mypy isn't happy, nobody is happy. 😉

@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Patch coverage: 93.54% and project coverage change: -0.48% ⚠️

Comparison is base (5234158) 92.11% compared to head (49d3be1) 91.63%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #692      +/-   ##
==========================================
- Coverage   92.11%   91.63%   -0.48%     
==========================================
  Files           9        9              
  Lines         558      550       -8     
  Branches      127      118       -9     
==========================================
- Hits          514      504      -10     
- Misses         23       24       +1     
- Partials       21       22       +1     
Files Changed Coverage Δ
src/cloudimagedirectory/transform/transform.py 90.41% <93.33%> (-0.81%) ⬇️
src/cloudimagedirectory/connection/connection.py 90.62% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@major major requested a review from miyunari July 26, 2023 14:48
Remove all of the `@no_type_check` markers and use the
`connection.DataEntry` type with all transformers. There are still some
issues with passing a list to DataEntry when it expects to have a
dictionary or `None` as its second argument.

Because if mypy isn't happy, nobody is happy. 😉

Signed-off-by: Major Hayden <major@redhat.com>
@miyunari miyunari merged commit 53bce11 into main Jul 26, 2023
5 of 6 checks passed
@miyunari miyunari deleted the transformer-type-checks branch July 26, 2023 17:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants