2
2
import numbers
3
3
import traceback
4
4
from contextlib import contextmanager
5
- from typing import Any , Generator , List , NoReturn , Optional , Set , Union
5
+ from typing import Any , Generator , List , NoReturn , Optional , Sequence , Union
6
6
7
7
8
8
class BaseSegment (abc .ABC ):
@@ -74,7 +74,7 @@ def add_exception(self, exception: BaseException, stack: List[traceback.StackSum
74
74
75
75
76
76
class BaseProvider (abc .ABC ):
77
- @abc .abstractmethod # type: ignore
77
+ @abc .abstractmethod
78
78
@contextmanager
79
79
def in_subsegment (self , name = None , ** kwargs ) -> Generator [BaseSegment , None , None ]:
80
80
"""Return a subsegment context manger.
@@ -87,7 +87,7 @@ def in_subsegment(self, name=None, **kwargs) -> Generator[BaseSegment, None, Non
87
87
Optional parameters to be propagated to segment
88
88
"""
89
89
90
- @abc .abstractmethod # type: ignore
90
+ @abc .abstractmethod
91
91
@contextmanager
92
92
def in_subsegment_async (self , name = None , ** kwargs ) -> Generator [BaseSegment , None , None ]:
93
93
"""Return a subsegment async context manger.
@@ -131,7 +131,7 @@ def put_metadata(self, key: str, value: Any, namespace: str = "default") -> NoRe
131
131
"""
132
132
133
133
@abc .abstractmethod
134
- def patch (self , modules : Set [str ]) -> NoReturn :
134
+ def patch (self , modules : Sequence [str ]) -> NoReturn :
135
135
"""Instrument a set of supported libraries
136
136
137
137
Parameters
0 commit comments