aboutsummaryrefslogtreecommitdiff
path: root/ethosu/mlw_codec/test/test_mlw_codec.py
diff options
context:
space:
mode:
authorJonas Ohlsson <jonas.ohlsson@arm.com>2022-03-01 12:39:55 +0100
committerJonas Ohlsson <jonas.ohlsson@arm.com>2022-03-21 11:09:39 +0100
commit845e23200d471e44f274940846e400d170b5ff37 (patch)
tree28a01492bf11f0ff69309ead9bd8a1bad9e14cbb /ethosu/mlw_codec/test/test_mlw_codec.py
parentd2b5510697e7789f5a416f9d80d3cb640eecc092 (diff)
downloadethos-u-vela-845e23200d471e44f274940846e400d170b5ff37.tar.gz
MLBEDSW-3367 Add mypy to pre-commit
Add mypy to pre-commit and clean up all reported errors. Signed-off-by: Jonas Ohlsson <jonas.ohlsson@arm.com> Change-Id: If7dc869f5fecdb0e2db40f14e7d9db21aa33df71
Diffstat (limited to 'ethosu/mlw_codec/test/test_mlw_codec.py')
-rw-r--r--ethosu/mlw_codec/test/test_mlw_codec.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ethosu/mlw_codec/test/test_mlw_codec.py b/ethosu/mlw_codec/test/test_mlw_codec.py
index 18c828a3..3ff26e53 100644
--- a/ethosu/mlw_codec/test/test_mlw_codec.py
+++ b/ethosu/mlw_codec/test/test_mlw_codec.py
@@ -15,6 +15,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# Simple example of the usage of mlw_codec.
+from typing import Any
+from typing import List
+
import pytest
from ethosu import mlw_codec
@@ -68,7 +71,7 @@ class TestMLWCodec:
with pytest.raises(Exception):
mlw_codec.encode(input)
- invalid_decode_test_data = [None, 3, []]
+ invalid_decode_test_data: List[Any] = [None, 3, []]
@pytest.mark.parametrize("input", invalid_decode_test_data)
def test_decode_invalid_input(self, input):