From e98327f10d312f7bff8b424821fcebbe6b1906d9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 13 Jan 2020 21:39:57 +1000 Subject: [PATCH] request type hints in new contributions --- README.contributing | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.contributing b/README.contributing index d3f792b4d..5e5caa7e2 100644 --- a/README.contributing +++ b/README.contributing @@ -34,6 +34,8 @@ pragmatism is advised. Anki's codebase is old and of varying quality, and there are parts that are difficult to type properly. Don't feel the need to avoid 'Any' when a proper type is impractical. +Please use type hints in any new code that you are contributing. + When running 'make check', Anki uses mypy to typecheck the code. Mypy only checks parts of the code that have type signatures, so adding more type signatures to the code improves code coverage.