Skip to content

Commit 5068c5b

Browse files
committed
typing
1 parent 695dd06 commit 5068c5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sentry_sdk/tracing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,13 +1348,13 @@ def _set_initial_sampling_decision(self, sampling_context):
13481348
if TYPE_CHECKING:
13491349

13501350
@overload
1351-
def trace(func=None):
1352-
# type: (None) -> Callable[[Callable[P, R]], Callable[P, R]]
1351+
def trace(func=None, *, template="span", op=None, name=None, attributes=None):
1352+
# type: (Optional[Callable[P, R]], str, Optional[str], Optional[str], Optional[dict[str, Any]]) -> Union[Callable[P, R], Callable[[Callable[P, R]], Callable[P, R]]]
13531353
pass
13541354

13551355
@overload
1356-
def trace(func):
1357-
# type: (Callable[P, R]) -> Callable[P, R]
1356+
def trace(func, *, template="span", op=None, name=None, attributes=None):
1357+
# type: (Callable[P, R], str, Optional[str], Optional[str], Optional[dict[str, Any]]) -> Union[Callable[P, R], Callable[[Callable[P, R]], Callable[P, R]]]
13581358
pass
13591359

13601360

0 commit comments

Comments
 (0)