Skip to content

Commit 01aa27d

Browse files
committed
Reduce size of string
1 parent 06e2cef commit 01aa27d

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

sentry_sdk/_types.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,14 @@
66

77
from typing import TYPE_CHECKING, TypeVar, Union
88

9-
109
# Re-exported for compat, since code out there in the wild might use this variable.
1110
MYPY = TYPE_CHECKING
1211

1312

1413
SENSITIVE_DATA_SUBSTITUTE = "[Filtered]"
1514
BLOB_DATA_SUBSTITUTE = "[Blob substitute]"
16-
OVER_SIZE_LIMIT_SUBSTITUTE = (
17-
"[Value removed due to size of field exceeding configured maximum size.]"
18-
)
19-
UNPARSABLE_RAW_DATA_SUBSTITUTE = "[Value removed due to being unparsable.]"
15+
OVER_SIZE_LIMIT_SUBSTITUTE = "[Value removed: Exceeds maximum size]"
16+
UNPARSABLE_RAW_DATA_SUBSTITUTE = "[Value removed: Unparsable]"
2017

2118

2219
class AnnotatedValue:
@@ -142,17 +139,10 @@ def substituted_because_contains_sensitive_data(cls) -> "AnnotatedValue":
142139

143140
if TYPE_CHECKING:
144141
from collections.abc import Container, MutableMapping, Sequence
145-
146142
from datetime import datetime
147-
148143
from types import TracebackType
149-
from typing import Any
150-
from typing import Callable
151-
from typing import Dict
152-
from typing import Mapping
153-
from typing import NotRequired
154-
from typing import Optional
155-
from typing import Type
144+
from typing import Any, Callable, Dict, Mapping, NotRequired, Optional, Type
145+
156146
from typing_extensions import Literal, TypedDict
157147

158148
class SDKInfo(TypedDict):

0 commit comments

Comments
 (0)