diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-07 19:55:00 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-07 20:16:09 +0800 |
commit | e5a73abd80578aa5e46d8d444466d1e6346ec6ec (patch) | |
tree | 9af6211c406e995a4c2129b931ad2a83bc05c0b5 /utils/configuration.py | |
parent | 98b6e6dc3be6f88abb72e351c8f2da2b23b8ab85 (diff) |
Type hint for python version lower than 3.9
Diffstat (limited to 'utils/configuration.py')
-rw-r--r-- | utils/configuration.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/configuration.py b/utils/configuration.py index aa04b32..455abe8 100644 --- a/utils/configuration.py +++ b/utils/configuration.py @@ -1,4 +1,4 @@ -from typing import TypedDict, Optional, Union, Tuple +from typing import TypedDict, Optional, Union, Tuple, Dict from utils.dataset import ClipClasses, ClipConditions, ClipViews @@ -15,7 +15,7 @@ class DatasetConfiguration(TypedDict): train_size: int num_sampled_frames: int discard_threshold: int - selector: Optional[dict[str, Union[ClipClasses, ClipConditions, ClipViews]]] + selector: Optional[Dict[str, Union[ClipClasses, ClipConditions, ClipViews]]] num_input_channels: int frame_size: Tuple[int, int] cache_on: bool |