Skip to content

Commit

Permalink
Code Style Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XinRanZhAWS committed Jan 27, 2024
1 parent 038459d commit 8f50eb1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def _build_readable_span_mock(span_attributes: Attributes) -> ReadableSpan:


def _build_readable_span_mock_without_deepcopy_support(span_attributes: Attributes) -> ReadableSpan:
class NoDeepCopyMock(MagicMock):
class Mock(MagicMock):
def __init__(self, *args: Any, **kw: Any):
super().__init__(*args, **kw)
self._attributes = span_attributes
Expand All @@ -382,6 +382,6 @@ def __init__(self, *args: Any, **kw: Any):
def __deepcopy__(self, memo):
return self

mock_span_data: ReadableSpan = NoDeepCopyMock()
mock_span_data: ReadableSpan = Mock()

return mock_span_data

0 comments on commit 8f50eb1

Please sign in to comment.