Strip the annotations from a given type.
(t: _T)
| 184 | |
| 185 | |
| 186 | def strip_annotations(t: _T) -> _T: |
| 187 | """Strip the annotations from a given type.""" |
| 188 | return strip_annotations(typing.get_args(t)[0]) if is_annotated(t) else t |
| 189 | |
| 190 | |
| 191 | def is_list_type(t: Any) -> typing.TypeGuard[typing.Sequence]: |
no test coverage detected