@@ -195,7 +195,7 @@ def put_annotation(self, key: str, value: Union[str, numbers.Number, bool]):
195
195
logger .debug (f"Annotating on key '{ key } ' with '{ value } '" )
196
196
self .provider .put_annotation (key = key , value = value )
197
197
198
- def put_metadata (self , key : str , value : Any , namespace : str = None ):
198
+ def put_metadata (self , key : str , value : Any , namespace : Optional [ str ] = None ):
199
199
"""Adds metadata to existing segment or subsegment
200
200
201
201
Parameters
@@ -330,7 +330,10 @@ def decorate(event, context, **kwargs):
330
330
return decorate
331
331
332
332
def capture_method (
333
- self , method : Callable = None , capture_response : Optional [bool ] = None , capture_error : Optional [bool ] = None
333
+ self ,
334
+ method : Optional [Callable ] = None ,
335
+ capture_response : Optional [bool ] = None ,
336
+ capture_error : Optional [bool ] = None ,
334
337
):
335
338
"""Decorator to create subsegment for arbitrary functions
336
339
@@ -717,7 +720,7 @@ def __build_config(
717
720
service : Optional [str ] = None ,
718
721
disabled : Optional [bool ] = None ,
719
722
auto_patch : Optional [bool ] = None ,
720
- patch_modules : Union [List , Tuple , None ] = None ,
723
+ patch_modules : Optional [ Union [List , Tuple ] ] = None ,
721
724
provider : Optional [BaseProvider ] = None ,
722
725
):
723
726
"""Populates Tracer config for new and existing initializations"""
0 commit comments