Skip to content

Commit cb67c24

Browse files
committed
ref(client): Remove wrong type annotation
GH-4699
1 parent e3bcf06 commit cb67c24

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sentry_sdk/client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import uuid
44
import random
55
import socket
6-
import asyncio
76
from collections.abc import Mapping
87
from datetime import datetime, timezone
98
from importlib import import_module
@@ -936,7 +935,7 @@ def close(
936935
self,
937936
timeout: Optional[float] = None,
938937
callback: Optional[Callable[[int, float], None]] = None,
939-
) -> Optional[asyncio.Task[None]]:
938+
) -> None:
940939
"""
941940
Close the client and shut down the transport. Arguments have the same
942941
semantics as :py:meth:`Client.flush`.
@@ -983,7 +982,7 @@ def flush(
983982
self,
984983
timeout: Optional[float] = None,
985984
callback: Optional[Callable[[int, float], None]] = None,
986-
) -> Optional[asyncio.Task[None]]:
985+
) -> None:
987986
"""
988987
Wait for the current events to be sent.
989988

0 commit comments

Comments
 (0)