abydos icon indicating copy to clipboard operation
abydos copied to clipboard

Pass static typing tests

Open chrislit opened this issue 4 years ago • 1 comments

Add static type hinting & test with mypy. This issue will get moved from release to release until each task is complete (which might never occur).

Tasks:

  • [x] complete mypy abydos with no errors
  • [ ] remove calls to cast (they're not free...)
  • [ ] add type hints to every function/method (enable disallow_incomplete_defs = True & disallow_untyped_defs = True in [mypy] of setup.cfg)
  • [ ] clean out Union types (consider making simpler non-Unions)
  • [ ] eliminate # type: ignore
  • [ ] transition variable type hints to Py3.7+ style (after removing Py3.6 support)

chrislit avatar Jan 21 '20 02:01 chrislit

I may do a bit of this before releasing 0.6, but 3.6-support probably will stay until 0.6's release, so the final task can't be done yet.

chrislit avatar Jan 05 '22 21:01 chrislit