Skip to content

Commit b2c9af9

Browse files
authored
Add docstrings for Scope.update_from_* (#2311)
This makes the methods appear in our apidocs.
1 parent 2f3a402 commit b2c9af9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sentry_sdk/scope.py

+2
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ def _drop(cause, ty):
653653

654654
def update_from_scope(self, scope):
655655
# type: (Scope) -> None
656+
"""Update the scope with another scope's data."""
656657
if scope._level is not None:
657658
self._level = scope._level
658659
if scope._fingerprint is not None:
@@ -690,6 +691,7 @@ def update_from_kwargs(
690691
fingerprint=None, # type: Optional[List[str]]
691692
):
692693
# type: (...) -> None
694+
"""Update the scope's attributes."""
693695
if level is not None:
694696
self._level = level
695697
if user is not None:

0 commit comments

Comments
 (0)