diff --git a/packages/apps/src/microsoft/teams/apps/app_plugins.py b/packages/apps/src/microsoft/teams/apps/app_plugins.py index e599d76f..4df42844 100644 --- a/packages/apps/src/microsoft/teams/apps/app_plugins.py +++ b/packages/apps/src/microsoft/teams/apps/app_plugins.py @@ -76,7 +76,7 @@ def get_plugin(self, name: str) -> Optional[PluginBase]: def inject(self, plugin: PluginBase) -> None: """Injects dependencies and events into the plugin.""" - hints = get_type_hints(plugin, include_extras=True) + hints = get_type_hints(plugin.__class__, include_extras=True) for field_name, annotated_type in hints.items(): origin = getattr(annotated_type, "__origin__", None)