Skip to content

Commit 633286f

Browse files
committed
love typing
1 parent 3780eed commit 633286f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sentry_sdk/_log_batcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
from typing import TYPE_CHECKING
22

33
from sentry_sdk._batcher import Batcher
4-
from sentry_sdk._types import Log
54
from sentry_sdk.utils import serialize_attribute
65
from sentry_sdk.envelope import Envelope, Item, PayloadRef
76

87
if TYPE_CHECKING:
98
from typing import Any
9+
from sentry_sdk._types import Log
1010

1111

12-
class LogBatcher(Batcher[Log]):
12+
class LogBatcher(Batcher["Log"]):
1313
MAX_BEFORE_FLUSH = 100
1414
MAX_BEFORE_DROP = 1_000
1515
FLUSH_WAIT_TIME = 5.0

sentry_sdk/_metrics_batcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
from typing import TYPE_CHECKING
22

33
from sentry_sdk._batcher import Batcher
4-
from sentry_sdk._types import Metric
54
from sentry_sdk.utils import serialize_attribute
65
from sentry_sdk.envelope import Item
76

87
if TYPE_CHECKING:
98
from typing import Any
9+
from sentry_sdk._types import Metric
1010

1111

12-
class MetricsBatcher(Batcher[Metric]):
12+
class MetricsBatcher(Batcher["Metric"]):
1313
MAX_BEFORE_FLUSH = 1000
1414
MAX_BEFORE_DROP = 10_000
1515
FLUSH_WAIT_TIME = 5.0

0 commit comments

Comments
 (0)