Skip to content

Commit 76e6140

Browse files
committed
Fix Mypy linter errors
1 parent a3e2296 commit 76e6140

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sentry_sdk/integrations/ray.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ def new_remote(f=None, *args, **kwargs):
5353
return old_remote(f, *args, **kwargs)
5454

5555
def wrapper(user_f):
56+
# type: (Callable[..., Any]) -> Any
57+
@functools.wraps(user_f)
5658
def new_func(*f_args, _tracing=None, **f_kwargs):
59+
# type: (Any, Optional[dict[str, Any]], Any) -> Any
5760
_check_sentry_initialized()
5861

5962
transaction = sentry_sdk.continue_trace(
@@ -116,7 +119,7 @@ def _remote_method_with_header_propagation(*args, **kwargs):
116119
else:
117120
return wrapper
118121

119-
ray.remote = new_remote
122+
ray.remote = new_remote # type: ignore[assignment]
120123

121124

122125
def _capture_exception(exc_info, **kwargs):

0 commit comments

Comments
 (0)