Skip to content

Conversation

@bartfeenstra
Copy link
Owner

@bartfeenstra bartfeenstra commented Feb 1, 2026

This fixes #3715

To do

  • Plugin management is really a (kind of) service. Service levels MUST initialize PluginManager lazily. That will also prevent the current circular imports.

@bartfeenstra bartfeenstra added this to the 0.5.0 milestone Feb 1, 2026
@bartfeenstra bartfeenstra added enhancement New feature or request BC break Breaks backwards compatibility with existing integrations python Pull requests that update Python code labels Feb 1, 2026
@bartfeenstra bartfeenstra force-pushed the remove-plugin-repos branch 4 times, most recently from 19675a1 to 2be909d Compare February 2, 2026 13:02

_T = TypeVar("_T")
_KeyT = TypeVar("_KeyT")
_KeyCoT = TypeVar("_KeyCoT")
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the covariant types after all?

"""
The plugin manager.
"""
from betty.service.plugin import PluginManager
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this a service?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BC break Breaks backwards compatibility with existing integrations enhancement New feature or request python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove plugin repositories

1 participant