Skip to content

Commit 4fe2bcd

Browse files
committed
linting
1 parent bc389c1 commit 4fe2bcd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sentry_sdk/integrations/asyncio.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
except ImportError:
1313
raise DidNotEnable("asyncio not available")
1414

15-
from typing import Any, cast, TYPE_CHECKING
15+
from typing import cast, TYPE_CHECKING
1616

1717
if TYPE_CHECKING:
18+
from typing import Any
1819
from collections.abc import Coroutine
1920

2021
from sentry_sdk._types import ExcInfo
@@ -94,7 +95,7 @@ async def _task_with_sentry_span_creation():
9495

9596
# Set the task name to include the original coroutine's name
9697
try:
97-
cast(asyncio.Task[Any], task).set_name(
98+
cast("asyncio.Task[Any]", task).set_name(
9899
f"{get_name(coro)} (Sentry-wrapped)"
99100
)
100101
except AttributeError:

0 commit comments

Comments
 (0)