From 38a8a3d4ef69def7c0fc50a48a49786c9b12686f Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Mon, 8 Apr 2024 18:23:09 +0200 Subject: [PATCH] ref(crons): Remove deprecated `typing` imports (#2945) Instead, these should be imported from collections.abc --- sentry_sdk/crons/_decorator.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/sentry_sdk/crons/_decorator.py b/sentry_sdk/crons/_decorator.py index 13606addf8..2d0612f681 100644 --- a/sentry_sdk/crons/_decorator.py +++ b/sentry_sdk/crons/_decorator.py @@ -4,16 +4,8 @@ from sentry_sdk._types import TYPE_CHECKING if TYPE_CHECKING: - from typing import ( - Any, - Awaitable, - Callable, - cast, - overload, - ParamSpec, - TypeVar, - Union, - ) + from collections.abc import Awaitable, Callable + from typing import Any, cast, overload, ParamSpec, TypeVar, Union P = ParamSpec("P") R = TypeVar("R")