Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Mar 28, 2024
1 parent 3dc5bc2 commit d923c51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sentry_sdk/crons/_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ def __call__(self, fn):
if iscoroutinefunction(fn):

@wraps(fn)
async def inner(*args: "P.args", **kwargs: "P.kwargs") -> R:
async def inner(*args: "P.args", **kwargs: "P.kwargs"):
# type: (...) -> R
with self: # type: ignore[attr-defined]
return await fn(*args, **kwargs)

else:

@wraps(fn)
def inner(*args: "P.args", **kwargs: "P.kwargs") -> R:
def inner(*args: "P.args", **kwargs: "P.kwargs"):
# type: (...) -> R
with self: # type: ignore[attr-defined]
return fn(*args, **kwargs)

Expand Down

0 comments on commit d923c51

Please sign in to comment.