Skip to content

Commit fdd62ff

Browse files
authored
get type hint of class, not object (#202)
Otherwise it stops working with python 3.14
1 parent 94428f4 commit fdd62ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/apps/src/microsoft/teams/apps/app_plugins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def get_plugin(self, name: str) -> Optional[PluginBase]:
7676
def inject(self, plugin: PluginBase) -> None:
7777
"""Injects dependencies and events into the plugin."""
7878

79-
hints = get_type_hints(plugin, include_extras=True)
79+
hints = get_type_hints(plugin.__class__, include_extras=True)
8080

8181
for field_name, annotated_type in hints.items():
8282
origin = getattr(annotated_type, "__origin__", None)

0 commit comments

Comments
 (0)