From e6ca080da25d5b4afec365a5506488d8ce1fc6e8 Mon Sep 17 00:00:00 2001 From: mjamroz Date: Tue, 4 Nov 2025 08:36:49 +0100 Subject: [PATCH] get type hint of class, not object --- packages/apps/src/microsoft/teams/apps/app_plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)