Test if a given annotation is of the given subclass.
(annotation: typing.Any, cls: type)
| 45 | |
| 46 | |
| 47 | def annotation_issubclass(annotation: typing.Any, cls: type) -> bool: |
| 48 | """Test if a given annotation is of the given subclass.""" |
| 49 | return annotation_is_class(annotation) and issubclass(annotation, cls) |