akshaynagpal / w2n

Convert number words (eg. twenty one) to numeric digits (21)
http://w2n.readthedocs.io
MIT License
167 stars 78 forks source link

Add a mypy stub #62

Open Ivan-Kouznetsov opened 3 years ago

Ivan-Kouznetsov commented 3 years ago

A mypy compatible stub file as per https://mypy.readthedocs.io/en/stable/stubs.html, using types annotations that mirror the comments in w2n.py.

This is needed to use this library in a project that uses mypy, otherwise the following error will be returned by mypy: error: Skipping analyzing 'word2number': found module but no type hints or library stubs

codecov[bot] commented 3 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@33aac8a). Click here to learn what that means. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #62   +/-   ##
=========================================
  Coverage          ?   96.80%           
=========================================
  Files             ?        2           
  Lines             ?      125           
  Branches          ?        0           
=========================================
  Hits              ?      121           
  Misses            ?        4           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 33aac8a...c8d636b. Read the comment docs.