Repository navigation
Expand file tree
/
Copy pathtypes.py
More file actions
61 lines (55 loc) · 1.45 KB
/
Copy pathtypes.py
File metadata and controls
61 lines (55 loc) · 1.45 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
53
54
55
56
57
58
59
60
61
"""
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 (
Attributes,
Breadcrumb,
BreadcrumbHint,
DataCollectionUserOptions,
Event,
EventDataCategory,
Hint,
Log,
Metric,
MonitorConfig,
SamplingContext,
SpanJSON,
)
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.
Attributes = Any
Breadcrumb = Any
BreadcrumbHint = Any
DataCollectionUserOptions = Any
Event = Any
EventDataCategory = Any
Hint = Any
Log = Any
MonitorConfig = Any
SamplingContext = Any
SpanJSON = Any
Metric = Any
__all__ = (
"Attributes",
"Breadcrumb",
"BreadcrumbHint",
"DataCollectionUserOptions",
"Event",
"EventDataCategory",
"Hint",
"Log",
"MonitorConfig",
"SamplingContext",
"SpanJSON",
"Metric",
)