Skip to content

Commit e9d637b

Browse files
committed
ref(client): Move mypy annotations to correct place
GH-4601
1 parent 53a984c commit e9d637b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sentry_sdk/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -926,11 +926,11 @@ def _close_components(self) -> None:
926926
self.transport.kill()
927927
self.transport = None
928928

929-
def close(
929+
def close( # type: ignore[override]
930930
self,
931931
timeout: Optional[float] = None,
932932
callback: Optional[Callable[[int, float], None]] = None,
933-
) -> Optional[asyncio.Task[None]]: # type: ignore[override]
933+
) -> Optional[asyncio.Task[None]]:
934934
"""
935935
Close the client and shut down the transport. Arguments have the same
936936
semantics as :py:meth:`Client.flush`. When using the async transport, close needs to be awaited to block.
@@ -952,11 +952,11 @@ def _on_flush_done(_: asyncio.Task[None]) -> None:
952952
self._close_components()
953953
return None
954954

955-
def flush(
955+
def flush( # type: ignore[override]
956956
self,
957957
timeout: Optional[float] = None,
958958
callback: Optional[Callable[[int, float], None]] = None,
959-
) -> Optional[asyncio.Task[None]]: # type: ignore[override]
959+
) -> Optional[asyncio.Task[None]]:
960960
"""
961961
Wait for the current events to be sent. When using the async transport, flush needs to be awaited to block.
962962

0 commit comments

Comments
 (0)