18
18
List ,
19
19
Set ,
20
20
Tuple ,
21
+ FrozenSet ,
22
+ DefaultDict ,
21
23
)
24
+ from collections import defaultdict
22
25
from typing_extensions import TypeAlias
23
26
24
27
import more_itertools
@@ -118,7 +121,7 @@ def yaml_not_supported(se: Any, de: Any, opt: Any) -> bool:
118
121
param ({1 , 2 }, Set , toml_not_supported ),
119
122
param ({1 , 2 }, set , toml_not_supported ),
120
123
param (set (), Set [int ], toml_not_supported ),
121
- # TODO param(frozenset({1, 2}), FrozenSet[int], toml_not_supported),
124
+ param (frozenset ({1 , 2 }), FrozenSet [int ], toml_not_supported ),
122
125
param ((1 , 1 ), Tuple [int , int ]),
123
126
param ((1 , 1 ), Tuple ),
124
127
param ((1 , 2 , 3 ), Tuple [int , ...]),
@@ -127,8 +130,8 @@ def yaml_not_supported(se: Any, de: Any, opt: Any) -> bool:
127
130
param ({"a" : 1 }, dict ),
128
131
param ({}, Dict [str , int ]),
129
132
param ({"a" : 1 }, Dict [str , int ]),
130
- # TODO param({"a": 1}, DefaultDict[str, int]),
131
- # TODO param({"a": [1]}, DefaultDict[str, List[int]]),
133
+ param (defaultdict ( {"a" : 1 }. copy ) , DefaultDict [str , int ]),
134
+ param (defaultdict ( {"a" : [1 ]}. copy ) , DefaultDict [str , List [int ]]),
132
135
param (data .Pri (10 , "foo" , 100.0 , True ), data .Pri ), # dataclass
133
136
param (data .Pri (10 , "foo" , 100.0 , True ), Optional [data .Pri ]),
134
137
param (
0 commit comments