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