Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
emmettbutler committed Nov 13, 2023
1 parent 0a10509 commit 76491c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ddtrace/span.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,7 @@ def get_metrics(self) -> _MetricDictType:
"""Return all metrics."""
return self._metrics.copy()

def set_traceback(self, limit=None):
# type: (int) -> None
def set_traceback(self, limit: Optional[int] = None):
"""If the current stack has an exception, tag the span with the
relevant error info. If not, tag it with the current python stack.
"""
Expand Down

0 comments on commit 76491c0

Please sign in to comment.