Skip to content

Commit e946007

Browse files
authored
Fix Span.__exit__ type annotations
1 parent a78ab21 commit e946007

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ddtrace/_trace/span.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,12 @@ def finish_with_ancestors(self) -> None:
781781
def __enter__(self) -> "Span":
782782
return self
783783

784-
def __exit__(self, exc_type: Type[BaseException], exc_val: BaseException, exc_tb: Optional[TracebackType]) -> None:
784+
def __exit__(
785+
self,
786+
exc_type: Optional[Type[BaseException]],
787+
exc_val: Optional[BaseException],
788+
exc_tb: Optional[TracebackType],
789+
) -> None:
785790
try:
786791
if exc_type:
787792
self.set_exc_info(exc_type, exc_val, exc_tb)

0 commit comments

Comments
 (0)