(cls, data: ReadBuffer)
| 2095 | |
| 2096 | @classmethod |
| 2097 | def read(cls, data: ReadBuffer) -> Parameters: |
| 2098 | ret = Parameters( |
| 2099 | read_type_list(data), |
| 2100 | # This is a micro-optimization until mypyc gets dedicated enum support. Otherwise, |
| 2101 | # we would spend ~20% of types deserialization time in Enum.__call__(). |
| 2102 | [ARG_KINDS[ak] for ak in read_int_list(data)], |
| 2103 | read_str_opt_list(data), |
| 2104 | variables=read_type_var_likes(data), |
| 2105 | imprecise_arg_kinds=read_bool(data), |
| 2106 | ) |
| 2107 | assert read_tag(data) == END_TAG |
| 2108 | return ret |
| 2109 | |
| 2110 | def __hash__(self) -> int: |
| 2111 | return hash( |
nothing calls this directly
no test coverage detected