|
6 | 6 |
|
7 | 7 | from typing import TYPE_CHECKING, TypeVar, Union |
8 | 8 |
|
9 | | - |
10 | 9 | # Re-exported for compat, since code out there in the wild might use this variable. |
11 | 10 | MYPY = TYPE_CHECKING |
12 | 11 |
|
13 | 12 |
|
14 | 13 | SENSITIVE_DATA_SUBSTITUTE = "[Filtered]" |
15 | 14 | 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]" |
20 | 17 |
|
21 | 18 |
|
22 | 19 | class AnnotatedValue: |
@@ -142,17 +139,10 @@ def substituted_because_contains_sensitive_data(cls) -> "AnnotatedValue": |
142 | 139 |
|
143 | 140 | if TYPE_CHECKING: |
144 | 141 | from collections.abc import Container, MutableMapping, Sequence |
145 | | - |
146 | 142 | from datetime import datetime |
147 | | - |
148 | 143 | 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 | + |
156 | 146 | from typing_extensions import Literal, TypedDict |
157 | 147 |
|
158 | 148 | class SDKInfo(TypedDict): |
|
0 commit comments