senwu / emmental

A deep learning framework for building multimodal multi-task learning systems.
https://emmental.readthedocs.io
MIT License
109 stars 18 forks source link

fix typing #97

Closed senwu closed 3 years ago

senwu commented 3 years ago

Description of the problems or issues

There are some typing issue with new mypy.

Test plan

Pass mypy tests.

Checklist

codecov[bot] commented 3 years ago

Codecov Report

Merging #97 (ef172fe) into master (627ec39) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #97   +/-   ##
=======================================
  Coverage   85.99%   85.99%           
=======================================
  Files          39       39           
  Lines        1892     1892           
  Branches      406      406           
=======================================
  Hits         1627     1627           
  Misses        153      153           
  Partials      112      112           
Flag Coverage Δ
unittests 85.99% <100.00%> (ø)

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

Impacted Files Coverage Δ
src/emmental/learner.py 70.27% <100.00%> (ø)