Skip to content

Commit b0cc71a

Browse files
committed
typing
1 parent 2d93a65 commit b0cc71a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sentry_sdk/tracing.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,18 +1340,18 @@ def _set_initial_sampling_decision(self, sampling_context):
13401340

13411341
if TYPE_CHECKING:
13421342

1343-
@overload
1344-
def trace(func):
1345-
# type: (Callable[P, R]) -> Callable[P, R]
1346-
# Handles: @trace
1347-
pass
1348-
13491343
@overload
13501344
def trace(func=None, *, op=None, name=None, attributes=None):
13511345
# type: (None, Optional[str], Optional[str], Optional[dict[str, Any]]) -> Callable[[Callable[P, R]], Callable[P, R]]
13521346
# Handles: @trace() and @trace(op="custom")
13531347
pass
13541348

1349+
@overload
1350+
def trace(func):
1351+
# type: (Callable[P, R]) -> Callable[P, R]
1352+
# Handles: @trace
1353+
pass
1354+
13551355

13561356
def trace(func=None, *, op=None, name=None, attributes=None):
13571357
# type: (Optional[Callable[P, R]], Optional[str], Optional[str], Optional[dict[str, Any]]) -> Union[Callable[P, R], Callable[[Callable[P, R]], Callable[P, R]]]

0 commit comments

Comments
 (0)