mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-25 05:25:23 -04:00
refactor: streamline trigger imports and enhance plugin registration logic
- Simplified import statements across various files by reordering and consolidating imports for better readability. - Refactored the PluginRegistration class to improve the clarity of the configuration handling logic, ensuring more concise checks for subscription constructors. These changes enhance code maintainability and readability throughout the plugin structure.
This commit is contained in:
@@ -15,7 +15,7 @@ from werkzeug import Request, Response
|
||||
|
||||
from dify_plugin.entities import I18nObject, ParameterOption
|
||||
from dify_plugin.entities.oauth import TriggerOAuthCredentials
|
||||
from dify_plugin.entities.trigger import Subscription, EventDispatch, UnsubscribeResult
|
||||
from dify_plugin.entities.trigger import EventDispatch, Subscription, UnsubscribeResult
|
||||
from dify_plugin.errors.trigger import (
|
||||
SubscriptionError,
|
||||
TriggerDispatchError,
|
||||
|
||||
Reference in New Issue
Block a user