(data: JsonDict | str)
| 240 | |
| 241 | |
| 242 | def deserialize_type(data: JsonDict | str) -> Type: |
| 243 | if isinstance(data, str): |
| 244 | return Instance.deserialize(data) |
| 245 | classname = data[".class"] |
| 246 | method = deserialize_map.get(classname) |
| 247 | if method is not None: |
| 248 | return method(data) |
| 249 | raise NotImplementedError(f"unexpected .class {classname}") |
| 250 | |
| 251 | |
| 252 | class Type(mypy.nodes.Context): |
no test coverage detected
searching dependent graphs…