Return a list of all loaded metadata source plugins.
()
| 45 | |
| 46 | @cache |
| 47 | def find_metadata_source_plugins() -> list[MetadataSourcePlugin]: |
| 48 | """Return a list of all loaded metadata source plugins.""" |
| 49 | # TODO: Make this an isinstance(MetadataSourcePlugin, ...) check in v3.0.0 |
| 50 | # This should also allow us to remove the type: ignore comments below. |
| 51 | return [p for p in find_plugins() if hasattr(p, "data_source")] # type: ignore[misc] |
| 52 | |
| 53 | |
| 54 | @cache |
no test coverage detected