We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 210e93b commit 6a135d9Copy full SHA for 6a135d9
1 file changed
src/a2a/utils/telemetry.py
@@ -71,6 +71,7 @@ def internal_method(self):
71
72
from collections.abc import Callable
73
from typing import TYPE_CHECKING, Any
74
+from typing_extensions import Self
75
76
77
if TYPE_CHECKING:
@@ -119,7 +120,7 @@ class _NoOp:
119
120
def __call__(self, *args: Any, **kwargs: Any) -> Any:
121
return self
122
- def __enter__(self) -> '_NoOp':
123
+ def __enter__(self) -> Self:
124
125
126
def __exit__(self, *args: object, **kwargs: Any) -> None:
0 commit comments