(cls, data: ReadBuffer)
| 1360 | |
| 1361 | @classmethod |
| 1362 | def read(cls, data: ReadBuffer) -> AnyType: |
| 1363 | tag = read_tag(data) |
| 1364 | if tag != LITERAL_NONE: |
| 1365 | assert tag == ANY_TYPE |
| 1366 | source_any = AnyType.read(data) |
| 1367 | else: |
| 1368 | source_any = None |
| 1369 | ret = AnyType(read_int(data), source_any, read_str_opt(data)) |
| 1370 | assert read_tag(data) == END_TAG |
| 1371 | return ret |
| 1372 | |
| 1373 | |
| 1374 | class UninhabitedType(ProperType): |
nothing calls this directly
no test coverage detected