File tree 2 files changed +32
-2
lines changed
2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,9 @@ class SDKInfo(TypedDict):
220
220
tuple [None , None , None ],
221
221
]
222
222
223
+ # TODO: Make a proper type definition for this (PRs welcome!)
223
224
Hint = Dict [str , Any ]
225
+
224
226
Log = TypedDict (
225
227
"Log" ,
226
228
{
@@ -233,9 +235,13 @@ class SDKInfo(TypedDict):
233
235
},
234
236
)
235
237
238
+ # TODO: Make a proper type definition for this (PRs welcome!)
236
239
Breadcrumb = Dict [str , Any ]
240
+
241
+ # TODO: Make a proper type definition for this (PRs welcome!)
237
242
BreadcrumbHint = Dict [str , Any ]
238
243
244
+ # TODO: Make a proper type definition for this (PRs welcome!)
239
245
SamplingContext = Dict [str , Any ]
240
246
241
247
EventProcessor = Callable [[Event , Hint ], Optional [Event ]]
Original file line number Diff line number Diff line change 11
11
from typing import TYPE_CHECKING
12
12
13
13
if TYPE_CHECKING :
14
- from sentry_sdk ._types import Event , EventDataCategory , Hint , Log
14
+ # Re-export types to make them available in the public API
15
+ from sentry_sdk ._types import (
16
+ Breadcrumb ,
17
+ BreadcrumbHint ,
18
+ Event ,
19
+ EventDataCategory ,
20
+ Hint ,
21
+ Log ,
22
+ MonitorConfig ,
23
+ SamplingContext ,
24
+ )
15
25
else :
16
26
from typing import Any
17
27
18
28
# The lines below allow the types to be imported from outside `if TYPE_CHECKING`
19
29
# guards. The types in this module are only intended to be used for type hints.
30
+ Breadcrumb = Any
31
+ BreadcrumbHint = Any
20
32
Event = Any
21
33
EventDataCategory = Any
22
34
Hint = Any
23
35
Log = Any
36
+ MonitorConfig = Any
37
+ SamplingContext = Any
24
38
25
- __all__ = ("Event" , "EventDataCategory" , "Hint" , "Log" )
39
+
40
+ __all__ = (
41
+ "Breadcrumb" ,
42
+ "BreadcrumbHint" ,
43
+ "Event" ,
44
+ "EventDataCategory" ,
45
+ "Hint" ,
46
+ "Log" ,
47
+ "MonitorConfig" ,
48
+ "SamplingContext" ,
49
+ )
You can’t perform that action at this time.
0 commit comments