|
15 | 15 |
|
16 | 16 |
|
17 | 17 | import typing as _t |
18 | | -from logging import getLogger as _getLogger |
19 | 18 |
|
20 | 19 | from ._api import ( # noqa: F401 dynamic attributes |
21 | 20 | NotificationCategory, |
|
37 | 36 | AsyncSession, |
38 | 37 | AsyncTransaction, |
39 | 38 | ) |
40 | | -from ._conf import ( # noqa: F401 dynamic attribute |
41 | | - Config as _Config, |
42 | | - SessionConfig as _SessionConfig, |
| 39 | +from ._conf import ( |
43 | 40 | TrustAll, |
44 | 41 | TrustCustomCAs, |
45 | 42 | TrustSystemCAs, |
46 | | - WorkspaceConfig as _WorkspaceConfig, |
47 | 43 | ) |
48 | 44 | from ._data import Record |
49 | 45 | from ._meta import ( |
|
55 | 51 | PreviewWarning, |
56 | 52 | version as __version__, |
57 | 53 | ) |
58 | | -from ._sync.config import ( # noqa: F401 dynamic attribute |
59 | | - PoolConfig as _PoolConfig, |
60 | | -) |
61 | 54 | from ._sync.driver import ( |
62 | 55 | BoltDriver, |
63 | 56 | Driver, |
|
88 | 81 | from ._work import ( |
89 | 82 | GqlStatusObject, # noqa: TCH004 false positive (dynamic attribute) |
90 | 83 | NotificationClassification, # noqa: TCH004 false positive (dynamic attribute) |
91 | | - SummaryInputPosition as SummaryNotificationPosition, # noqa: TCH004 false positive (dynamic attribute) |
92 | 84 | ) |
93 | 85 |
|
94 | 86 | from .addressing import ( |
|
139 | 131 | "BoltDriver", |
140 | 132 | "Bookmark", |
141 | 133 | "Bookmarks", |
142 | | - "Config", # noqa: F822 dynamic attribute |
143 | 134 | "Driver", |
144 | 135 | "EagerResult", |
145 | 136 | "ExperimentalWarning", |
|
155 | 146 | "NotificationDisabledClassification", |
156 | 147 | "NotificationMinimumSeverity", |
157 | 148 | "NotificationSeverity", |
158 | | - "PoolConfig", # noqa: F822 dynamic attribute |
159 | 149 | "PreviewWarning", |
160 | 150 | "Query", |
161 | 151 | "Record", |
|
164 | 154 | "RoutingControl", |
165 | 155 | "ServerInfo", |
166 | 156 | "Session", |
167 | | - "SessionConfig", # noqa: F822 dynamic attribute |
168 | 157 | "SummaryCounters", |
169 | 158 | "SummaryInputPosition", |
170 | 159 | "SummaryNotification", |
171 | | - "SummaryNotificationPosition", |
172 | 160 | "Transaction", |
173 | 161 | "TrustAll", |
174 | 162 | "TrustCustomCAs", |
175 | 163 | "TrustSystemCAs", |
176 | 164 | "Version", |
177 | | - "WorkspaceConfig", # noqa: F822 dynamic attribute |
178 | 165 | "__version__", |
179 | 166 | "basic_auth", |
180 | 167 | "bearer_auth", |
181 | 168 | "custom_auth", |
182 | 169 | "get_user_agent", |
183 | 170 | "kerberos_auth", |
184 | | - "log", # noqa: F822 dynamic attribute |
185 | 171 | "unit_of_work", |
186 | 172 | ] |
187 | 173 |
|
188 | 174 |
|
189 | | -_log = _getLogger("neo4j") |
190 | | - |
191 | | - |
192 | 175 | def __getattr__(name) -> _t.Any: |
193 | 176 | # TODO: 6.0 - remove this |
194 | | - if name in { |
195 | | - "log", |
196 | | - "Config", |
197 | | - "PoolConfig", |
198 | | - "SessionConfig", |
199 | | - "WorkspaceConfig", |
200 | | - }: |
201 | | - _deprecation_warn( |
202 | | - f"Importing {name} from neo4j is deprecated without replacement. " |
203 | | - "It's internal and will be removed in a future version.", |
204 | | - stack_level=2, |
205 | | - ) |
206 | | - return globals()[f"_{name}"] |
207 | | - if name == "SummaryNotificationPosition": |
208 | | - _deprecation_warn( |
209 | | - "SummaryNotificationPosition is deprecated. " |
210 | | - "Use SummaryInputPosition instead.", |
211 | | - stack_level=2, |
212 | | - ) |
213 | | - return SummaryInputPosition |
214 | 177 | if name in { |
215 | 178 | "NotificationClassification", |
216 | 179 | "GqlStatusObject", |
|
0 commit comments