Check if the given type is an annotated type.
(annotation: type)
| 176 | |
| 177 | |
| 178 | def is_annotated(annotation: type) -> bool: |
| 179 | """Check if the given type is an annotated type.""" |
| 180 | return typing.get_origin(annotation) in ( |
| 181 | typing.Annotated, |
| 182 | typing_extensions.Annotated, |
| 183 | ) |
| 184 | |
| 185 | |
| 186 | def strip_annotations(t: _T) -> _T: |
no outgoing calls
no test coverage detected