We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f085fb commit a0ae9dbCopy full SHA for a0ae9db
beets/metadata_plugins.py
@@ -40,7 +40,7 @@ def find_metadata_source_plugins() -> list[MetadataSourcePlugin]:
40
"""
41
42
all_plugins = find_plugins()
43
- metadata_plugins = []
+ metadata_plugins: list[MetadataSourcePlugin | BeetsPlugin] = []
44
for plugin in all_plugins:
45
if isinstance(plugin, MetadataSourcePlugin):
46
metadata_plugins.append(plugin)
@@ -55,7 +55,8 @@ def find_metadata_source_plugins() -> list[MetadataSourcePlugin]:
55
)
56
57
58
- return metadata_plugins
+ # typeignore: BeetsPlugin is not a MetadataSourcePlugin (legacy support)
59
+ return metadata_plugins # type: ignore[return-value]
60
61
62
@notify_info_yielded("albuminfo_received")
0 commit comments