diff options
author | Annie Tallund <annie.tallund@arm.com> | 2023-04-11 09:29:56 +0200 |
---|---|---|
committer | Annie Tallund <annie.tallund@arm.com> | 2023-04-12 11:59:37 +0000 |
commit | ef6e6aeb6796124bded8238860da00972e9aaf10 (patch) | |
tree | 8cbda716e02fb0dce7d1b0833073bc8c61407b54 /src/mlia/target | |
parent | 8d00200d5aa2011bc91ccc688ee93caf5b6980f6 (diff) | |
download | mlia-ef6e6aeb6796124bded8238860da00972e9aaf10.tar.gz |
MLIA-849 Update mypy version and fix associated issues
- Remove unused silencing of typing
- Amend None type hints where it is default
Change-Id: Id972b56dcdce865bf6c9d6aea88bc76baf39133e
Diffstat (limited to 'src/mlia/target')
-rw-r--r-- | src/mlia/target/config.py | 2 | ||||
-rw-r--r-- | src/mlia/target/cortex_a/reporters.py | 2 | ||||
-rw-r--r-- | src/mlia/target/ethos_u/reporters.py | 2 | ||||
-rw-r--r-- | src/mlia/target/tosa/reporters.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/mlia/target/config.py b/src/mlia/target/config.py index eb7ecff..3bc74fa 100644 --- a/src/mlia/target/config.py +++ b/src/mlia/target/config.py @@ -16,7 +16,7 @@ from typing import TypeVar try: import tomllib except ModuleNotFoundError: - import tomli as tomllib # type: ignore + import tomli as tomllib from mlia.backend.registry import registry as backend_registry from mlia.core.common import AdviceCategory diff --git a/src/mlia/target/cortex_a/reporters.py b/src/mlia/target/cortex_a/reporters.py index fc80c9f..e7247f5 100644 --- a/src/mlia/target/cortex_a/reporters.py +++ b/src/mlia/target/cortex_a/reporters.py @@ -82,7 +82,7 @@ def cortex_a_formatters(data: Any) -> Callable[[Any], Report]: return report_target if isinstance(data, TFLiteCompatibilityInfo): - return report_tflite_compatiblity # type: ignore + return report_tflite_compatiblity if isinstance(data, CortexACompatibilityInfo): return report_cortex_a_operators diff --git a/src/mlia/target/ethos_u/reporters.py b/src/mlia/target/ethos_u/reporters.py index 4964462..00e68b5 100644 --- a/src/mlia/target/ethos_u/reporters.py +++ b/src/mlia/target/ethos_u/reporters.py @@ -392,4 +392,4 @@ def ethos_u_formatters(data: Any) -> Callable[[Any], Report]: else: raise Exception(f"Unable to find appropriate formatter for {data}") - return report # type: ignore + return report diff --git a/src/mlia/target/tosa/reporters.py b/src/mlia/target/tosa/reporters.py index decae0c..e10f047 100644 --- a/src/mlia/target/tosa/reporters.py +++ b/src/mlia/target/tosa/reporters.py @@ -166,6 +166,6 @@ def tosa_formatters(data: Any) -> Callable[[Any], Report]: return report_tosa_compatibility if isinstance(data, TFLiteCompatibilityInfo): - return report_tflite_compatiblity # type: ignore + return report_tflite_compatiblity raise Exception(f"Unable to find appropriate formatter for {data}") |