Skip to content

Commit 0c78adc

Browse files
CopilotJimDaly
andcommitted
Fix type annotation to use standard 'type' instead of 'builtins.type'
Co-authored-by: JimDaly <6353736+JimDaly@users.noreply.github.com>
1 parent d28ea30 commit 0c78adc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Copyright (c) Microsoft. All rights reserved.
22

3-
import builtins
43
from typing import Any, TypeVar
54

65
from microsoft_agents.activity import Activity
@@ -146,7 +145,7 @@ def notification_type(self) -> NotificationTypes | None:
146145
return self._notification_type
147146

148147
# Generic escape hatch
149-
def as_model(self, model: builtins.type[TModel]) -> TModel | None:
148+
def as_model(self, model: type[TModel]) -> TModel | None:
150149
"""Parse the activity value as a custom model type.
151150
152151
This method provides a generic way to validate and parse the activity's value

0 commit comments

Comments
 (0)