omlish 0.0.0.dev415__py3-none-any.whl → 0.0.0.dev416__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- omlish/__about__.py +2 -2
- omlish/dataclasses/__init__.py +5 -1
- omlish/lang/__init__.py +486 -473
- omlish/lang/imports/proxyinit.py +161 -48
- omlish/lang/maybes.py +8 -0
- omlish/marshal/__init__.py +4 -4
- omlish/marshal/base/contexts.py +17 -14
- omlish/marshal/base/overrides.py +17 -8
- omlish/marshal/base/registries.py +8 -2
- omlish/marshal/base/types.py +59 -7
- omlish/marshal/globals.py +30 -20
- omlish/reflect/__init__.py +57 -47
- omlish/reflect/types.py +144 -15
- {omlish-0.0.0.dev415.dist-info → omlish-0.0.0.dev416.dist-info}/METADATA +14 -9
- {omlish-0.0.0.dev415.dist-info → omlish-0.0.0.dev416.dist-info}/RECORD +19 -18
- {omlish-0.0.0.dev415.dist-info → omlish-0.0.0.dev416.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev415.dist-info → omlish-0.0.0.dev416.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev415.dist-info → omlish-0.0.0.dev416.dist-info}/licenses/LICENSE +0 -0
- {omlish-0.0.0.dev415.dist-info → omlish-0.0.0.dev416.dist-info}/top_level.txt +0 -0
omlish/lang/__init__.py
CHANGED
@@ -1,473 +1,486 @@
|
|
1
|
-
from .
|
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
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
)
|
80
|
-
|
81
|
-
from .classes.
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
)
|
165
|
-
|
166
|
-
from .
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
)
|
230
|
-
|
231
|
-
from .
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
)
|
240
|
-
|
241
|
-
from .imports.
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
1
|
+
from .imports.proxyinit import auto_proxy_init as _auto_proxy_init
|
2
|
+
|
3
|
+
|
4
|
+
with _auto_proxy_init(
|
5
|
+
globals(),
|
6
|
+
update_exports=True,
|
7
|
+
# eager=True,
|
8
|
+
):
|
9
|
+
##
|
10
|
+
|
11
|
+
from .asyncs import ( # noqa
|
12
|
+
async_list,
|
13
|
+
|
14
|
+
sync_await,
|
15
|
+
sync_async_list,
|
16
|
+
)
|
17
|
+
|
18
|
+
from .attrs import ( # noqa
|
19
|
+
AttrOps,
|
20
|
+
AttributePresentError,
|
21
|
+
DictAttrOps,
|
22
|
+
STD_ATTR_OPS,
|
23
|
+
SetAttrIfPresent,
|
24
|
+
StdAttrOps,
|
25
|
+
TRANSIENT_ATTR_OPS,
|
26
|
+
TransientAttrOps,
|
27
|
+
TransientDict,
|
28
|
+
set_attr,
|
29
|
+
transient_delattr,
|
30
|
+
transient_getattr,
|
31
|
+
transient_setattr,
|
32
|
+
)
|
33
|
+
|
34
|
+
from .cached.function import ( # noqa
|
35
|
+
cached_function,
|
36
|
+
static_init,
|
37
|
+
)
|
38
|
+
|
39
|
+
from .cached.property import ( # noqa
|
40
|
+
cached_property,
|
41
|
+
)
|
42
|
+
|
43
|
+
from .casing import ( # noqa
|
44
|
+
StringCasingError,
|
45
|
+
ImproperStringCasingError,
|
46
|
+
UnknownStringCasingError,
|
47
|
+
AmbiguousStringCasingError,
|
48
|
+
|
49
|
+
StringCasing,
|
50
|
+
CamelCase,
|
51
|
+
LowCamelCase,
|
52
|
+
SnakeCase,
|
53
|
+
UpSnakeCase,
|
54
|
+
|
55
|
+
STRING_CASINGS,
|
56
|
+
CAMEL_CASE,
|
57
|
+
LOW_CAMEL_CASE,
|
58
|
+
SNAKE_CASE,
|
59
|
+
UP_SNAKE_CASE,
|
60
|
+
|
61
|
+
camel_case,
|
62
|
+
low_camel_case,
|
63
|
+
snake_case,
|
64
|
+
up_snake_case,
|
65
|
+
|
66
|
+
get_string_casing,
|
67
|
+
split_string_casing,
|
68
|
+
)
|
69
|
+
|
70
|
+
from .classes.abstract import ( # noqa
|
71
|
+
Abstract,
|
72
|
+
AbstractTypeError,
|
73
|
+
get_abstract_methods,
|
74
|
+
is_abstract,
|
75
|
+
is_abstract_class,
|
76
|
+
is_abstract_method,
|
77
|
+
make_abstract,
|
78
|
+
unabstract_class,
|
79
|
+
)
|
80
|
+
|
81
|
+
from .classes.bindable import ( # noqa
|
82
|
+
BindableClass,
|
83
|
+
)
|
84
|
+
|
85
|
+
from .classes.namespaces import ( # noqa
|
86
|
+
GenericNamespaceMeta,
|
87
|
+
Namespace,
|
88
|
+
NamespaceMeta,
|
89
|
+
)
|
90
|
+
|
91
|
+
from .classes.protocols import ( # noqa
|
92
|
+
ProtocolForbiddenAsBaseClass,
|
93
|
+
ProtocolForbiddenAsBaseClassTypeError,
|
94
|
+
)
|
95
|
+
|
96
|
+
from .classes.restrict import ( # noqa
|
97
|
+
AnySensitive,
|
98
|
+
Final,
|
99
|
+
FinalTypeError,
|
100
|
+
NoBool,
|
101
|
+
NotInstantiable,
|
102
|
+
NotPicklable,
|
103
|
+
PackageSealed,
|
104
|
+
SENSITIVE_ATTR,
|
105
|
+
Sealed,
|
106
|
+
SealedError,
|
107
|
+
Sensitive,
|
108
|
+
no_bool,
|
109
|
+
)
|
110
|
+
|
111
|
+
from .classes.simple import ( # noqa
|
112
|
+
LazySingleton,
|
113
|
+
Marker,
|
114
|
+
SimpleMetaDict,
|
115
|
+
Singleton,
|
116
|
+
)
|
117
|
+
|
118
|
+
from .classes.virtual import ( # noqa
|
119
|
+
Callable,
|
120
|
+
Descriptor,
|
121
|
+
Picklable,
|
122
|
+
Virtual,
|
123
|
+
virtual_check,
|
124
|
+
)
|
125
|
+
|
126
|
+
from .clsdct import ( # noqa
|
127
|
+
ClassDctFn,
|
128
|
+
cls_dct_fn,
|
129
|
+
get_caller_cls_dct,
|
130
|
+
is_possibly_cls_dct,
|
131
|
+
)
|
132
|
+
|
133
|
+
from .collections import ( # noqa
|
134
|
+
empty_map,
|
135
|
+
merge_dicts,
|
136
|
+
yield_dict_init,
|
137
|
+
)
|
138
|
+
|
139
|
+
from .comparison import ( # noqa
|
140
|
+
Infinity,
|
141
|
+
InfinityType,
|
142
|
+
NegativeInfinity,
|
143
|
+
NegativeInfinityType,
|
144
|
+
cmp,
|
145
|
+
)
|
146
|
+
|
147
|
+
from .contextmanagers import ( # noqa
|
148
|
+
AsyncContextManager,
|
149
|
+
ContextManaged,
|
150
|
+
ContextManager,
|
151
|
+
ContextWrapped,
|
152
|
+
DefaultLockable,
|
153
|
+
Lockable,
|
154
|
+
NOP_CONTEXT_MANAGER,
|
155
|
+
NopContextManager,
|
156
|
+
Timer,
|
157
|
+
breakpoint_on_exception,
|
158
|
+
context_var_setting,
|
159
|
+
context_wrapped,
|
160
|
+
default_lock,
|
161
|
+
disposing,
|
162
|
+
double_check_setdefault,
|
163
|
+
maybe_managing,
|
164
|
+
)
|
165
|
+
|
166
|
+
from .datetimes import ( # noqa
|
167
|
+
ISO_FMT,
|
168
|
+
ISO_FMT_US,
|
169
|
+
ISO_FMT_NTZ,
|
170
|
+
ISO_FMT_US_NTZ,
|
171
|
+
|
172
|
+
utcnow,
|
173
|
+
utcfromtimestamp,
|
174
|
+
)
|
175
|
+
|
176
|
+
from .descriptors import ( # noqa
|
177
|
+
AccessForbiddenError,
|
178
|
+
access_forbidden,
|
179
|
+
attr_property,
|
180
|
+
classonly,
|
181
|
+
decorator,
|
182
|
+
is_method_descriptor,
|
183
|
+
item_property,
|
184
|
+
unwrap_callable,
|
185
|
+
unwrap_callable_with_partials,
|
186
|
+
unwrap_func,
|
187
|
+
unwrap_func_with_partials,
|
188
|
+
unwrap_method_descriptors,
|
189
|
+
update_wrapper,
|
190
|
+
)
|
191
|
+
|
192
|
+
from .enums import ( # noqa
|
193
|
+
enum_name_repr,
|
194
|
+
)
|
195
|
+
|
196
|
+
from .errors import ( # noqa
|
197
|
+
DuplicateKeyError,
|
198
|
+
)
|
199
|
+
|
200
|
+
from .functions import ( # noqa
|
201
|
+
VoidError,
|
202
|
+
as_async,
|
203
|
+
call_with,
|
204
|
+
coalesce,
|
205
|
+
cond_kw,
|
206
|
+
constant,
|
207
|
+
finally_,
|
208
|
+
identity,
|
209
|
+
is_lambda,
|
210
|
+
is_none,
|
211
|
+
is_not_none,
|
212
|
+
isinstance_of,
|
213
|
+
issubclass_of,
|
214
|
+
maybe_call,
|
215
|
+
new_function,
|
216
|
+
new_function_kwargs,
|
217
|
+
nullary_constant,
|
218
|
+
opt_coalesce,
|
219
|
+
opt_fn,
|
220
|
+
opt_kw,
|
221
|
+
periodically,
|
222
|
+
raise_,
|
223
|
+
raising,
|
224
|
+
recurse,
|
225
|
+
strict_eq,
|
226
|
+
truthy_kw,
|
227
|
+
try_,
|
228
|
+
void,
|
229
|
+
)
|
230
|
+
|
231
|
+
from .generators import ( # noqa
|
232
|
+
GeneratorLike,
|
233
|
+
GeneratorMappedIterator,
|
234
|
+
autostart,
|
235
|
+
capture_coroutine,
|
236
|
+
capture_generator,
|
237
|
+
genmap,
|
238
|
+
nextgen,
|
239
|
+
)
|
240
|
+
|
241
|
+
from .imports.conditional import ( # noqa
|
242
|
+
register_conditional_import,
|
243
|
+
trigger_conditional_imports,
|
244
|
+
)
|
245
|
+
|
246
|
+
from .imports.lazy import ( # noqa
|
247
|
+
lazy_import,
|
248
|
+
proxy_import,
|
249
|
+
)
|
250
|
+
|
251
|
+
from .imports.proxyinit import ( # noqa
|
252
|
+
proxy_init,
|
253
|
+
|
254
|
+
AutoProxyInitError,
|
255
|
+
AutoProxyInitErrors,
|
256
|
+
AutoProxyInit,
|
257
|
+
auto_proxy_init,
|
258
|
+
)
|
259
|
+
|
260
|
+
from .imports.resolving import ( # noqa
|
261
|
+
can_import,
|
262
|
+
get_real_module_name,
|
263
|
+
resolve_import_name,
|
264
|
+
try_import,
|
265
|
+
)
|
266
|
+
|
267
|
+
from .imports.traversal import ( # noqa
|
268
|
+
import_all,
|
269
|
+
yield_import_all,
|
270
|
+
yield_importable,
|
271
|
+
)
|
272
|
+
|
273
|
+
from .iterables import ( # noqa
|
274
|
+
IteratorWithReturn,
|
275
|
+
asrange,
|
276
|
+
chunk,
|
277
|
+
common_prefix_len,
|
278
|
+
exhaust,
|
279
|
+
flatmap,
|
280
|
+
flatten,
|
281
|
+
ilen,
|
282
|
+
interleave,
|
283
|
+
itergen,
|
284
|
+
peek,
|
285
|
+
prodrange,
|
286
|
+
readiter,
|
287
|
+
renumerate,
|
288
|
+
take,
|
289
|
+
)
|
290
|
+
|
291
|
+
from .lazyglobals import ( # noqa
|
292
|
+
LazyGlobals,
|
293
|
+
)
|
294
|
+
|
295
|
+
from .maybes import ( # noqa
|
296
|
+
empty,
|
297
|
+
just,
|
298
|
+
)
|
299
|
+
|
300
|
+
from .maysyncs import ( # noqa
|
301
|
+
make_maysync_fn,
|
302
|
+
make_maysync_generator_fn,
|
303
|
+
make_maysync,
|
304
|
+
|
305
|
+
make_maysync_from_sync,
|
306
|
+
)
|
307
|
+
|
308
|
+
from .objects import ( # noqa
|
309
|
+
Identity,
|
310
|
+
SimpleProxy,
|
311
|
+
anon_object,
|
312
|
+
arg_repr,
|
313
|
+
can_weakref,
|
314
|
+
deep_subclasses,
|
315
|
+
dir_dict,
|
316
|
+
mro_dict,
|
317
|
+
mro_owner_dict,
|
318
|
+
new_type,
|
319
|
+
opt_repr,
|
320
|
+
super_meta,
|
321
|
+
)
|
322
|
+
|
323
|
+
from .outcomes import ( # noqa
|
324
|
+
Either,
|
325
|
+
Error,
|
326
|
+
Outcome,
|
327
|
+
OutcomeAlreadyUnwrappedError,
|
328
|
+
Value,
|
329
|
+
acapture,
|
330
|
+
capture,
|
331
|
+
error,
|
332
|
+
value,
|
333
|
+
)
|
334
|
+
|
335
|
+
from .overrides import ( # noqa
|
336
|
+
needs_override,
|
337
|
+
|
338
|
+
is_override,
|
339
|
+
|
340
|
+
RequiresOverrideError,
|
341
|
+
RequiresOverride,
|
342
|
+
)
|
343
|
+
|
344
|
+
from .params import ( # noqa
|
345
|
+
ArgsParam,
|
346
|
+
KwOnlyParam,
|
347
|
+
KwargsParam,
|
348
|
+
Param,
|
349
|
+
ParamSeparator,
|
350
|
+
ParamSpec,
|
351
|
+
PosOnlyParam,
|
352
|
+
ValParam,
|
353
|
+
VarParam,
|
354
|
+
param_render,
|
355
|
+
)
|
356
|
+
|
357
|
+
from .recursion import ( # noqa
|
358
|
+
LimitedRecursionError,
|
359
|
+
recursion_limiting,
|
360
|
+
recursion_limiting_context,
|
361
|
+
)
|
362
|
+
|
363
|
+
from .resolving import ( # noqa
|
364
|
+
Resolvable,
|
365
|
+
ResolvableClassNameError,
|
366
|
+
get_cls_fqcn,
|
367
|
+
get_fqcn_cls,
|
368
|
+
)
|
369
|
+
|
370
|
+
from .resources import ( # noqa
|
371
|
+
ReadableResource,
|
372
|
+
get_package_resources,
|
373
|
+
get_relative_resources,
|
374
|
+
)
|
375
|
+
|
376
|
+
from .strings import ( # noqa
|
377
|
+
BOOL_FALSE_STRINGS,
|
378
|
+
BOOL_STRINGS,
|
379
|
+
BOOL_TRUE_STRINGS,
|
380
|
+
STRING_BOOL_VALUES,
|
381
|
+
find_any,
|
382
|
+
indent_lines,
|
383
|
+
is_dunder,
|
384
|
+
is_ident,
|
385
|
+
is_ident_cont,
|
386
|
+
is_ident_start,
|
387
|
+
is_sunder,
|
388
|
+
iter_pat,
|
389
|
+
prefix_delimited,
|
390
|
+
prefix_lines,
|
391
|
+
replace_many,
|
392
|
+
rfind_any,
|
393
|
+
strip_prefix,
|
394
|
+
strip_suffix,
|
395
|
+
)
|
396
|
+
|
397
|
+
from .sys import ( # noqa
|
398
|
+
REQUIRED_PYTHON_VERSION,
|
399
|
+
check_runtime_version,
|
400
|
+
is_gil_enabled,
|
401
|
+
)
|
402
|
+
|
403
|
+
from .typing import ( # noqa
|
404
|
+
BytesLike,
|
405
|
+
|
406
|
+
static_check_isinstance,
|
407
|
+
static_check_issubclass,
|
408
|
+
copy_type,
|
409
|
+
|
410
|
+
protocol_check,
|
411
|
+
|
412
|
+
typed_lambda,
|
413
|
+
typed_partial,
|
414
|
+
|
415
|
+
SequenceNotStr,
|
416
|
+
)
|
417
|
+
|
418
|
+
##
|
419
|
+
|
420
|
+
from ..lite.args import ( # noqa
|
421
|
+
Args,
|
422
|
+
)
|
423
|
+
|
424
|
+
from ..lite.contextmanagers import ( # noqa
|
425
|
+
AsyncExitStacked,
|
426
|
+
ExitStacked,
|
427
|
+
adefer,
|
428
|
+
attr_setting,
|
429
|
+
defer,
|
430
|
+
)
|
431
|
+
|
432
|
+
from ..lite.imports import ( # noqa
|
433
|
+
import_attr,
|
434
|
+
import_module,
|
435
|
+
import_module_attr,
|
436
|
+
)
|
437
|
+
|
438
|
+
from ..lite.maybes import ( # noqa
|
439
|
+
Maybe,
|
440
|
+
)
|
441
|
+
|
442
|
+
from ..lite.maysyncs import ( # noqa
|
443
|
+
mark_maysync,
|
444
|
+
is_maysync,
|
445
|
+
|
446
|
+
AnyMaysyncFn,
|
447
|
+
|
448
|
+
MaywaitableAlreadyConsumedError,
|
449
|
+
AnyMaywaitable,
|
450
|
+
|
451
|
+
MaysyncFn,
|
452
|
+
Maywaitable,
|
453
|
+
|
454
|
+
MaysyncGeneratorFn,
|
455
|
+
MaysyncGenerator,
|
456
|
+
|
457
|
+
is_running_maysync,
|
458
|
+
|
459
|
+
run_maysync,
|
460
|
+
)
|
461
|
+
|
462
|
+
from ..lite.reprs import ( # noqa
|
463
|
+
AttrRepr,
|
464
|
+
attr_repr,
|
465
|
+
)
|
466
|
+
|
467
|
+
from ..lite.timeouts import ( # noqa
|
468
|
+
DeadlineTimeout,
|
469
|
+
InfiniteTimeout,
|
470
|
+
Timeout,
|
471
|
+
TimeoutLike,
|
472
|
+
)
|
473
|
+
|
474
|
+
from ..lite.types import ( # noqa
|
475
|
+
BUILTIN_SCALAR_ITERABLE_TYPES,
|
476
|
+
)
|
477
|
+
|
478
|
+
from ..lite.typing import ( # noqa
|
479
|
+
AnyFunc,
|
480
|
+
Func0,
|
481
|
+
Func1,
|
482
|
+
Func2,
|
483
|
+
Func3,
|
484
|
+
|
485
|
+
typing_annotations_attr,
|
486
|
+
)
|