diff --git a/sentry_sdk/api.py b/sentry_sdk/api.py index 50ba5eff5c..95e5abdd9e 100644 --- a/sentry_sdk/api.py +++ b/sentry_sdk/api.py @@ -84,7 +84,7 @@ def capture_exception( def add_breadcrumb( crumb=None, # type: Optional[Breadcrumb] hint=None, # type: Optional[BreadcrumbHint] - **kwargs # type: **Any + **kwargs # type: Any ): # type: (...) -> None hub = Hub.current diff --git a/sentry_sdk/hub.py b/sentry_sdk/hub.py index 7f4903caae..0c173b1427 100644 --- a/sentry_sdk/hub.py +++ b/sentry_sdk/hub.py @@ -304,7 +304,7 @@ def last_event_id(self): def bind_client( self, new # type: Optional[Client] ): - # type: () -> None + # type: (...) -> None """Binds a new client to the hub.""" top = self._stack[-1] self._stack[-1] = (new, top[1]) @@ -383,7 +383,7 @@ def add_breadcrumb( self, crumb=None, # type: Optional[Breadcrumb] hint=None, # type: Optional[BreadcrumbHint] - **kwargs # type: **Any + **kwargs # type: Any ): # type: (...) -> None """Adds a breadcrumb. The breadcrumbs are a dictionary with the diff --git a/sentry_sdk/transport.py b/sentry_sdk/transport.py index a602f199ce..7755867e66 100644 --- a/sentry_sdk/transport.py +++ b/sentry_sdk/transport.py @@ -59,9 +59,9 @@ def capture_event( raise NotImplementedError() def flush( - self, # type; float - timeout, # type: Optional[Any] - callback=None, + self, + timeout, # type: float + callback=None, # type: Optional[Any] ): # type: (...) -> None """Wait `timeout` seconds for the current events to be sent out."""