Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonXZLiu committed Sep 22, 2020
1 parent b9f0d20 commit 11242bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions opentelemetry-api/src/opentelemetry/trace/span.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,14 @@ def is_valid(self) -> bool:
return self[5]

def __setattr__(self, *args: str) -> None:
_logger.warning("This method has been deprecated: SpanContext is immutable.")
_logger.debug(
"Immutable type, ignoring call to set attribute", stack_info=True
)

def __delattr__(self, *args: str) -> None:
_logger.warning("This method has been deprecated: SpanContext is immutable.")
_logger.debug(
"Immutable type, ignoring call to set attribute", stack_info=True
)

def __repr__(self) -> str:
return (
Expand Down

0 comments on commit 11242bb

Please sign in to comment.