Skip to content

Commit 9e89c30

Browse files
authored
fix(typing): Set correct type for set_context everywhere (#4123)
1 parent 7b54cfb commit 9e89c30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/tracing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ def set_measurement(self, name, value, unit=""):
10521052
self._measurements[name] = {"value": value, "unit": unit}
10531053

10541054
def set_context(self, key, value):
1055-
# type: (str, Any) -> None
1055+
# type: (str, dict[str, Any]) -> None
10561056
"""Sets a context. Transactions can have multiple contexts
10571057
and they should follow the format described in the "Contexts Interface"
10581058
documentation.
@@ -1287,7 +1287,7 @@ def set_measurement(self, name, value, unit=""):
12871287
pass
12881288

12891289
def set_context(self, key, value):
1290-
# type: (str, Any) -> None
1290+
# type: (str, dict[str, Any]) -> None
12911291
pass
12921292

12931293
def init_span_recorder(self, maxlen):

0 commit comments

Comments
 (0)