@@ -195,7 +195,7 @@ def put_annotation(self, key: str, value: Union[str, numbers.Number, bool]):
195195 logger .debug (f"Annotating on key '{ key } ' with '{ value } '" )
196196 self .provider .put_annotation (key = key , value = value )
197197
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 ):
199199 """Adds metadata to existing segment or subsegment
200200
201201 Parameters
@@ -330,7 +330,10 @@ def decorate(event, context, **kwargs):
330330 return decorate
331331
332332 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 ,
334337 ):
335338 """Decorator to create subsegment for arbitrary functions
336339
@@ -717,7 +720,7 @@ def __build_config(
717720 service : Optional [str ] = None ,
718721 disabled : Optional [bool ] = None ,
719722 auto_patch : Optional [bool ] = None ,
720- patch_modules : Union [List , Tuple , None ] = None ,
723+ patch_modules : Optional [ Union [List , Tuple ] ] = None ,
721724 provider : Optional [BaseProvider ] = None ,
722725 ):
723726 """Populates Tracer config for new and existing initializations"""
0 commit comments