|
11 | 11 | from typing import List
|
12 | 12 | from typing import Literal
|
13 | 13 | from typing import Optional
|
14 |
| -from typing import Set |
15 | 14 | from typing import Tuple
|
16 | 15 | from typing import Type
|
17 | 16 | from typing import Union
|
@@ -73,7 +72,7 @@ def split_at_given_level(
|
73 | 72 |
|
74 | 73 | def list_parser(
|
75 | 74 | cls: Type, type_: TypeAlias, parsers: Optional[Dict[type, Callable[[str], Any]]] = None
|
76 |
| -) -> Callable[[str], List[Any]]: |
| 75 | +) -> partial: |
77 | 76 | """
|
78 | 77 | Returns a function that parses a stringified list into a `List` of the correct type.
|
79 | 78 |
|
@@ -102,7 +101,7 @@ def list_parser(
|
102 | 101 |
|
103 | 102 | def set_parser(
|
104 | 103 | cls: Type, type_: TypeAlias, parsers: Optional[Dict[type, Callable[[str], Any]]] = None
|
105 |
| -) -> Callable[[str], Set[Any]]: |
| 104 | +) -> partial: |
106 | 105 | """
|
107 | 106 | Returns a function that parses a stringified set into a `Set` of the correct type.
|
108 | 107 |
|
@@ -134,7 +133,7 @@ def set_parser(
|
134 | 133 |
|
135 | 134 | def tuple_parser(
|
136 | 135 | cls: Type, type_: TypeAlias, parsers: Optional[Dict[type, Callable[[str], Any]]] = None
|
137 |
| -) -> Callable[[str], Tuple[Any, ...]]: |
| 136 | +) -> partial: |
138 | 137 | """
|
139 | 138 | Returns a function that parses a stringified tuple into a `Tuple` of the correct type.
|
140 | 139 |
|
@@ -174,7 +173,7 @@ def tuple_parse(tuple_string: str) -> Tuple[Any, ...]:
|
174 | 173 |
|
175 | 174 | def dict_parser(
|
176 | 175 | cls: Type, type_: TypeAlias, parsers: Optional[Dict[type, Callable[[str], Any]]] = None
|
177 |
| -) -> Callable[[str], Dict[Any, Any]]: |
| 176 | +) -> partial: |
178 | 177 | """
|
179 | 178 | Returns a function that parses a stringified dict into a `Dict` of the correct type.
|
180 | 179 |
|
|
0 commit comments