Skip to content

Commit

Permalink
fix: Correct types on set_context (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker authored Nov 2, 2020
1 parent 377f71a commit 5dfd8bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sentry_sdk/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def set_tag(key, value):

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


Expand Down
2 changes: 1 addition & 1 deletion sentry_sdk/scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def remove_tag(
def set_context(
self,
key, # type: str
value, # type: Any
value, # type: Dict[str, Any]
):
# type: (...) -> None
"""Binds a context at a certain key to a specific value."""
Expand Down

0 comments on commit 5dfd8bd

Please sign in to comment.