Skip to content

Commit 5dfd8bd

Browse files
authored
fix: Correct types on set_context (getsentry#902)
1 parent 377f71a commit 5dfd8bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sentry_sdk/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def set_tag(key, value):
159159

160160
@scopemethod # noqa
161161
def set_context(key, value):
162-
# type: (str, Any) -> None
162+
# type: (str, Dict[str, Any]) -> None
163163
return Hub.current.scope.set_context(key, value)
164164

165165

sentry_sdk/scope.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def remove_tag(
232232
def set_context(
233233
self,
234234
key, # type: str
235-
value, # type: Any
235+
value, # type: Dict[str, Any]
236236
):
237237
# type: (...) -> None
238238
"""Binds a context at a certain key to a specific value."""

0 commit comments

Comments
 (0)