Skip to content

Commit 4d64c4e

Browse files
authored
fix(typing): Add more typing info to Scope.update_from_kwargs's "contexts" (#4080)
The original type hint could be understood as a one-level `dict` of `str` to `Any`, when in fact, it's a two-level dict.
1 parent ccfd3a8 commit 4d64c4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: sentry_sdk/scope.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@ def update_from_kwargs(
15681568
user=None, # type: Optional[Any]
15691569
level=None, # type: Optional[LogLevelStr]
15701570
extras=None, # type: Optional[Dict[str, Any]]
1571-
contexts=None, # type: Optional[Dict[str, Any]]
1571+
contexts=None, # type: Optional[Dict[str, Dict[str, Any]]]
15721572
tags=None, # type: Optional[Dict[str, str]]
15731573
fingerprint=None, # type: Optional[List[str]]
15741574
):

0 commit comments

Comments
 (0)