Skip to content

Fix pyright errors - #848

Merged
janfb merged 3 commits into
mainfrom
fix-pyright-errors
Jun 14, 2023
Merged

janfb merged 3 commits into
mainfrom
fix-pyright-errors

Conversation

@janfb

@janfb janfb commented Jun 12, 2023 •

Copy link
Copy Markdown
Contributor

see #847

I started fixing black and pyright errors. But there are hundreds of other pyright errors, so we need a more general solution.

@michaeldeistler let's discuss.

@janfb janfb self-assigned this Jun 12, 2023
@janfb

janfb commented Jun 13, 2023

Copy link
Copy Markdown
Contributor Author

as discussed, we will pin pyright to the last passing version and keep the issue open. We will have to solve the issue at a later point, e.g., when moving away from nflows.

@codecov

codecov Bot commented Jun 14, 2023

Copy link
Copy Markdown

Codecov Report

Merging #848 (68988fd) into main (86e73a9) will increase coverage by 0.00%.
The diff coverage is 62.50%.

@@           Coverage Diff           @@
##             main     #848   +/-   ##
=======================================
  Coverage   74.59%   74.60%           
=======================================
  Files          80       80           
  Lines        6236     6238    +2     
=======================================
+ Hits         4652     4654    +2     
  Misses       1584     1584           
Flag Coverage Δ
unittests 74.60% <62.50%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
sbi/inference/posteriors/direct_posterior.py 98.21% <ø> (ø)
sbi/inference/snpe/snpe_c.py 75.36% <0.00%> (ø)
sbi/inference/snpe/snpe_a.py 63.42% <33.33%> (ø)
sbi/inference/snpe/snpe_base.py 89.24% <100.00%> (+0.13%) ⬆️
sbi/types.py 100.00% <100.00%> (ø)

@michaeldeistler michaeldeistler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@janfb
janfb merged commit 0a4f024 into main Jun 14, 2023
@janfb
janfb deleted the fix-pyright-errors branch June 14, 2023 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants