7575_client_init_debug = ContextVar ("client_init_debug" )
7676
7777
78- SDK_INFO : " SDKInfo" = {
78+ SDK_INFO : SDKInfo = {
7979 "name" : "sentry.python" , # SDK name will be overridden after integrations have been loaded with sentry_sdk.integrations.setup_integrations()
8080 "version" : VERSION ,
8181 "packages" : [{"name" : "pypi:sentry-sdk" , "version" : VERSION }],
@@ -464,7 +464,7 @@ def _prepare_event(
464464 )
465465 return None
466466
467- event = event_ # Updated event from scope
467+ event = event_
468468 spans_delta = spans_before - len (
469469 cast ("List[Dict[str, object]]" , event .get ("spans" , []))
470470 )
@@ -578,7 +578,7 @@ def _prepare_event(
578578 if event .get ("exception" ):
579579 DedupeIntegration .reset_last_seen ()
580580
581- event = new_event # Updated event from before_send
581+ event = new_event
582582
583583 before_send_transaction = self .options ["before_send_transaction" ]
584584 if (
@@ -610,7 +610,7 @@ def _prepare_event(
610610 reason = "before_send" , data_category = "span" , quantity = spans_delta
611611 )
612612
613- event = new_event # Updated event from before_send_transaction
613+ event = new_event
614614
615615 return event
616616
@@ -757,17 +757,17 @@ def capture_event(
757757
758758 :returns: An event ID. May be `None` if there is no DSN set or of if the SDK decided to discard the event for other reasons. In such situations setting `debug=True` on `init()` may help.
759759 """
760- hint_dict : Hint = dict (hint or ())
760+ hint : Hint = dict (hint or ())
761761
762- if not self ._should_capture (event , hint_dict , scope ):
762+ if not self ._should_capture (event , hint , scope ):
763763 return None
764764
765765 profile = event .pop ("profile" , None )
766766
767767 event_id = event .get ("event_id" )
768768 if event_id is None :
769769 event ["event_id" ] = event_id = uuid .uuid4 ().hex
770- event_opt = self ._prepare_event (event , hint_dict , scope )
770+ event_opt = self ._prepare_event (event , hint , scope )
771771 if event_opt is None :
772772 return None
773773
@@ -783,11 +783,11 @@ def capture_event(
783783 if (
784784 not is_transaction
785785 and not is_checkin
786- and not self ._should_sample_error (event , hint_dict )
786+ and not self ._should_sample_error (event , hint )
787787 ):
788788 return None
789789
790- attachments = hint_dict .get ("attachments" )
790+ attachments = hint .get ("attachments" )
791791
792792 trace_context = event_opt .get ("contexts" , {}).get ("trace" ) or {}
793793 dynamic_sampling_context = trace_context .pop ("dynamic_sampling_context" , {})
0 commit comments