Skip to content

Commit c20429b

Browse files
Apply suggestions from code review
Co-authored-by: Daniel Szoke <[email protected]>
1 parent 9a63d8c commit c20429b

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
@@ -1341,13 +1341,13 @@ def _set_initial_sampling_decision(self, sampling_context):
13411341
if TYPE_CHECKING:
13421342

13431343
@overload
1344-
def trace(func=None, *, op=None, name=None, attributes=None):
1345-
# type: (Optional[Callable[P, R]], Optional[str], Optional[str], Optional[dict[str, Any]]) -> Callable[[Callable[P, R]], Callable[P, R]]
1344+
def trace(*, op=None, name=None, attributes=None):
1345+
# type: (Optional[str], Optional[str], Optional[dict[str, Any]]) -> Callable[[Callable[P, R]], Callable[P, R]]
13461346
pass
13471347

13481348
@overload
1349-
def trace(func, *, op=None, name=None, attributes=None):
1350-
# type: (Callable[P, R], Optional[str], Optional[str], Optional[dict[str, Any]]) -> Callable[P, R]
1349+
def trace(func):
1350+
# type: (Callable[P, R]) -> Callable[P, R]
13511351
pass
13521352

13531353

0 commit comments

Comments
 (0)