diff options
author | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2022-09-08 14:24:39 +0100 |
---|---|---|
committer | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2022-09-09 17:21:48 +0100 |
commit | f5b293d0927506c2a979a091bf0d07ecc78fa181 (patch) | |
tree | 4de585b7cb6ed34da8237063752270189a730a41 /src/mlia/core/_typing.py | |
parent | cde0c6ee140bd108849bff40467d8f18ffc332ef (diff) | |
download | mlia-f5b293d0927506c2a979a091bf0d07ecc78fa181.tar.gz |
MLIA-386 Simplify typing in the source code
- Enable deferred annotations evaluation
- Use builtin types for type hints whenever possible
- Use | syntax for union types
- Rename mlia.core._typing into mlia.core.typing
Change-Id: I3f6ffc02fa069c589bdd9e8bddbccd504285427a
Diffstat (limited to 'src/mlia/core/_typing.py')
-rw-r--r-- | src/mlia/core/_typing.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mlia/core/_typing.py b/src/mlia/core/_typing.py deleted file mode 100644 index bda995c..0000000 --- a/src/mlia/core/_typing.py +++ /dev/null @@ -1,12 +0,0 @@ -# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates. -# SPDX-License-Identifier: Apache-2.0 -"""Module for custom type hints.""" -from pathlib import Path -from typing import Literal -from typing import TextIO -from typing import Union - - -FileLike = TextIO -PathOrFileLike = Union[str, Path, FileLike] -OutputFormat = Literal["plain_text", "csv", "json"] |