Qulacs-Osaka / scikit-qulacs

scikit-qulacs is a library for quantum neural network. This library is based on qulacs and named after scikit-learn.
https://qulacs-osaka.github.io/scikit-qulacs/index.html
MIT License
21 stars 6 forks source link

Provide type hints #274

Closed ikanago closed 1 year ago

ikanago commented 1 year ago

64 のために type hints をちゃんとやろうとしたのですが,思いのほか量があったので自明なやつだけやりました.

ロジックに影響を及ぼしうるものは別の PR でやろうと思います.

また,poetry の依存パッケージの書き方が変わっていたので追従しておきました.

codecov[bot] commented 1 year ago

Codecov Report

Merging #274 (c8251fc) into main (e62215d) will increase coverage by 0.08%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #274      +/-   ##
==========================================
+ Coverage   92.54%   92.63%   +0.08%     
==========================================
  Files          12       12              
  Lines         993     1005      +12     
  Branches      192      192              
==========================================
+ Hits          919      931      +12     
  Misses         41       41              
  Partials       33       33              
Impacted Files Coverage Δ
skqulacs/circuit/circuit.py 83.06% <100.00%> (ø)
skqulacs/circuit/pre_defined.py 97.56% <100.00%> (+0.01%) :arrow_up:
skqulacs/qnn/classifier.py 92.07% <100.00%> (+0.07%) :arrow_up:
skqulacs/qnn/generation.py 97.80% <100.00%> (+0.04%) :arrow_up:
skqulacs/qnn/regressor.py 84.76% <100.00%> (ø)
skqulacs/qsvm/qsvc.py 100.00% <100.00%> (ø)
skqulacs/qsvm/qsvr.py 100.00% <100.00%> (ø)
skqulacs/save.py 100.00% <100.00%> (ø)

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