Skip to content

Commit f40ae43

Browse files
CopilotJimDaly
andauthored
Rename TModel to _TModel to fix broken doc links
Agent-Logs-Url: https://github.com/microsoft/Agent365-python/sessions/dbf4ac27-2d8a-4a26-bc1d-bdd20a8e264c Co-authored-by: JimDaly <6353736+JimDaly@users.noreply.github.com>
1 parent bce4079 commit f40ae43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/models/agent_notification_activity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from .email_reference import EmailReference
88
from .wpx_comment import WpxComment
99

10-
TModel = TypeVar("TModel")
10+
_TModel = TypeVar("_TModel")
1111

1212

1313
class AgentNotificationActivity:
@@ -148,7 +148,7 @@ def notification_type(self) -> Optional[NotificationTypes]:
148148
return self._notification_type
149149

150150
# Generic escape hatch
151-
def as_model(self, model: Type[TModel]) -> Optional[TModel]:
151+
def as_model(self, model: Type[_TModel]) -> Optional[_TModel]:
152152
"""Parse the activity value as a custom model type.
153153
154154
This method provides a generic way to validate and parse the activity's value

0 commit comments

Comments
 (0)