-
Notifications
You must be signed in to change notification settings - Fork 601
Expand file tree
/
Copy pathtypes.py
More file actions
52 lines (46 loc) · 1.24 KB
/
types.py
File metadata and controls
52 lines (46 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"""
This module contains type definitions for the Sentry SDK's public API.
The types are re-exported from the internal module `sentry_sdk._types`.
Disclaimer: Since types are a form of documentation, type definitions
may change in minor releases. Removing a type would be considered a
breaking change, and so we will only remove type definitions in major
releases.
"""
from typing import TYPE_CHECKING
if TYPE_CHECKING:
# Re-export types to make them available in the public API
from sentry_sdk._types import (
Breadcrumb,
BreadcrumbHint,
Event,
EventDataCategory,
Hint,
Log,
MonitorConfig,
SamplingContext,
Metric,
)
else:
from typing import Any
# The lines below allow the types to be imported from outside `if TYPE_CHECKING`
# guards. The types in this module are only intended to be used for type hints.
Breadcrumb = Any
BreadcrumbHint = Any
Event = Any
EventDataCategory = Any
Hint = Any
Log = Any
MonitorConfig = Any
SamplingContext = Any
Metric = Any
__all__ = (
"Breadcrumb",
"BreadcrumbHint",
"Event",
"EventDataCategory",
"Hint",
"Log",
"MonitorConfig",
"SamplingContext",
"Metric",
)