Uses 'Sequence' instead of 'List' in type hint definition for filter policy input types
@@ -12,7 +12,7 @@ import re
import sys
import time
import uuid
-from typing import Any, Callable, Dict, List, Mapping, Match, Optional, Set, Tuple, Union, cast
+from typing import Any, Callable, Dict, List, Mapping, Match, Optional, Sequence, Set, Tuple, Union, cast
import aiobotocore
import aiohttp
@@ -51,7 +51,7 @@ AnythingButFilterPolicyDict = TypedDict(
total=False,
)
-NumericFilterPolicyValueType = List[Union[int, float, Literal["<", "<=", "=", ">=", ">"]]]
+NumericFilterPolicyValueType = Sequence[Union[int, float, Literal["<", "<=", "=", ">=", ">"]]]
NumericFilterPolicyDict = TypedDict(
"NumericFilterPolicyDict",
{
@@ -76,9 +76,7 @@ ExistsFilterPolicyDict = TypedDict(
total=False,
)
-FilterPolicyDictType = Mapping[
- str,
- List[
+FilterPolicyDictValueType = Sequence[
Optional[
Union[
str,
@@ -90,9 +88,10 @@ FilterPolicyDictType = Mapping[
ExistsFilterPolicyDict,
]
]
- ],
]
+FilterPolicyDictType = Mapping[str, FilterPolicyDictValueType]
+
connector = ClientConnector()
