flatironinstitute / bayes-kit

Bayesian inference and posterior analysis for Python
MIT License
43 stars 3 forks source link

Correct type annotations in all but rhat/ess #9

Closed WardBrian closed 1 year ago

WardBrian commented 1 year ago

After this mypy --strict reports 30 errors in 4 files (rhat.py, ess.py, and the tests for those).

I'd like to include this as a CI step once we get that number to zero.

codecov-commenter commented 1 year ago

Codecov Report

Merging #9 (9177a0b) into main (b821fcd) will increase coverage by 0.10%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
+ Coverage   94.09%   94.19%   +0.10%     
==========================================
  Files           9        9              
  Lines         220      224       +4     
==========================================
+ Hits          207      211       +4     
  Misses         13       13              
Impacted Files Coverage Δ
bayes_kit/hmc.py 94.73% <100.00%> (+0.29%) :arrow_up:
bayes_kit/mala.py 93.54% <100.00%> (+0.21%) :arrow_up:
bayes_kit/rhat.py 100.00% <100.00%> (ø)
bayes_kit/rwm.py 91.66% <100.00%> (+0.36%) :arrow_up:
bayes_kit/smc.py 95.55% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more