(self, dictcls)
| 1155 | assert convert(dictcls({"one": 1, 2: "two"}), Any) == {"one": 1, 2: "two"} |
| 1156 | |
| 1157 | def test_empty_dict(self, dictcls): |
| 1158 | assert convert(dictcls({}), dict) == {} |
| 1159 | assert convert(dictcls({}), Dict[int, int]) == {} |
| 1160 | |
| 1161 | def test_typed_dict(self, dictcls): |
| 1162 | res = convert(dictcls({"x": 1, "y": 2}), Dict[str, float]) |