We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a95bf9f commit e01e225Copy full SHA for e01e225
sentry_sdk/_types.py
@@ -5,7 +5,6 @@
5
6
7
if MYPY:
8
- from numbers import Real
9
from types import TracebackType
10
from typing import Any
11
from typing import Callable
@@ -32,7 +31,7 @@
32
31
ErrorProcessor = Callable[[Event, ExcInfo], Optional[Event]]
33
BreadcrumbProcessor = Callable[[Breadcrumb, BreadcrumbHint], Optional[Breadcrumb]]
34
35
- TracesSampler = Callable[[SamplingContext], Union[Real, bool]]
+ TracesSampler = Callable[[SamplingContext], Union[float, int, bool]]
36
37
# https://github.com/python/mypy/issues/5710
38
NotImplementedType = Any
0 commit comments