Return a type annotation for the CDP type.
(cls, cdp_type)
| 179 | |
| 180 | @classmethod |
| 181 | def get_annotation(cls, cdp_type): |
| 182 | """Return a type annotation for the CDP type.""" |
| 183 | if cdp_type == "any": |
| 184 | return "typing.Any" |
| 185 | return cls[cdp_type].value |
| 186 | |
| 187 | @classmethod |
| 188 | def get_constructor(cls, cdp_type, val): |
no outgoing calls
no test coverage detected