Skip to content

Commit 0f0fae0

Browse files
committed
Make all relevant types public
1 parent 8632281 commit 0f0fae0

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

sentry_sdk/types.py

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,39 @@
1111
from typing import TYPE_CHECKING
1212

1313
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+
)
1525
else:
1626
from typing import Any
1727

1828
# The lines below allow the types to be imported from outside `if TYPE_CHECKING`
1929
# guards. The types in this module are only intended to be used for type hints.
30+
Breadcrumb = Any
31+
BreadcrumbHint = Any
2032
Event = Any
2133
EventDataCategory = Any
2234
Hint = Any
2335
Log = Any
36+
MonitorConfig = Any
37+
SamplingContext = Any
2438

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+
)

0 commit comments

Comments
 (0)