Skip to content

Commit e956503

Browse files
.
1 parent fb509be commit e956503

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

sentry_sdk/crons/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def _create_check_in_event(
1818
monitor_config: "Optional[MonitorConfig]" = None,
1919
) -> "Event":
2020
options = sentry_sdk.get_client().options
21-
check_in_id: str = check_in_id or uuid.uuid4().hex
21+
check_in_id = check_in_id or uuid.uuid4().hex
2222

2323
check_in: "Event" = {
2424
"type": "check_in",

sentry_sdk/tracing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -965,9 +965,7 @@ def finish(
965965

966966
# For backwards compatibility, we must handle the case where `scope`
967967
# or `hub` could both either be a `Scope` or a `Hub`.
968-
scope: "Optional[sentry_sdk.Scope]" = self._get_scope_from_finish_args(
969-
scope, hub
970-
)
968+
scope = self._get_scope_from_finish_args(scope, hub)
971969

972970
scope = scope or self.scope or sentry_sdk.get_current_scope()
973971
client = sentry_sdk.get_client()

0 commit comments

Comments
 (0)