ommlds 0.0.0.dev482__py3-none-any.whl → 0.0.0.dev483__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.
- ommlds/backends/anthropic/protocol/_dataclasses.py +305 -3055
- ommlds/backends/google/protocol/_dataclasses.py +1333 -4084
- ommlds/backends/groq/_dataclasses.py +585 -3335
- ommlds/backends/openai/protocol/_dataclasses.py +1082 -3832
- ommlds/backends/tavily/_dataclasses.py +75 -1248
- ommlds/cli/_dataclasses.py +692 -8760
- ommlds/minichain/_dataclasses.py +3417 -30215
- {ommlds-0.0.0.dev482.dist-info → ommlds-0.0.0.dev483.dist-info}/METADATA +3 -3
- {ommlds-0.0.0.dev482.dist-info → ommlds-0.0.0.dev483.dist-info}/RECORD +13 -13
- {ommlds-0.0.0.dev482.dist-info → ommlds-0.0.0.dev483.dist-info}/WHEEL +0 -0
- {ommlds-0.0.0.dev482.dist-info → ommlds-0.0.0.dev483.dist-info}/entry_points.txt +0 -0
- {ommlds-0.0.0.dev482.dist-info → ommlds-0.0.0.dev483.dist-info}/licenses/LICENSE +0 -0
- {ommlds-0.0.0.dev482.dist-info → ommlds-0.0.0.dev483.dist-info}/top_level.txt +0 -0
|
@@ -238,663 +238,50 @@ def _process_dataclass__159d324c21b5646307b1510d34746f88b98697be():
|
|
|
238
238
|
|
|
239
239
|
@_register(
|
|
240
240
|
plan_repr=(
|
|
241
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
242
|
-
"
|
|
243
|
-
"
|
|
244
|
-
"
|
|
245
|
-
"
|
|
246
|
-
".
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"
|
|
250
|
-
"
|
|
251
|
-
"
|
|
252
|
-
"
|
|
253
|
-
"
|
|
254
|
-
"
|
|
255
|
-
"
|
|
256
|
-
"
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
"type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(), kw_o"
|
|
260
|
-
"nly_params=('omit_if', 'default', 'embed', 'generic_replace', 'no_marshal', 'no_unmarshal'), frozen=True, slot"
|
|
261
|
-
"s=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='omit_if',"
|
|
262
|
-
" kw_only=True, fn=None), ReprPlan.Field(name='default', kw_only=True, fn=None), ReprPlan.Field(name='embed', k"
|
|
263
|
-
"w_only=True, fn=None), ReprPlan.Field(name='generic_replace', kw_only=True, fn=None), ReprPlan.Field(name='no_"
|
|
264
|
-
"marshal', kw_only=True, fn=None), ReprPlan.Field(name='no_unmarshal', kw_only=True, fn=None)), id=False, terse"
|
|
265
|
-
"=False, default_fn=None)))"
|
|
266
|
-
),
|
|
267
|
-
plan_repr_sha1='2c74992a67cabe7397fb3d1cc57b660ca4f1462c',
|
|
268
|
-
op_ref_idents=(
|
|
269
|
-
'__dataclass__init__fields__0__annotation',
|
|
270
|
-
'__dataclass__init__fields__0__default',
|
|
271
|
-
'__dataclass__init__fields__1__annotation',
|
|
272
|
-
'__dataclass__init__fields__1__check_type',
|
|
273
|
-
'__dataclass__init__fields__1__default',
|
|
274
|
-
'__dataclass__init__fields__2__annotation',
|
|
275
|
-
'__dataclass__init__fields__2__default',
|
|
276
|
-
'__dataclass__init__fields__3__annotation',
|
|
277
|
-
'__dataclass__init__fields__3__default',
|
|
278
|
-
'__dataclass__init__fields__4__annotation',
|
|
279
|
-
'__dataclass__init__fields__4__default',
|
|
280
|
-
'__dataclass__init__fields__5__annotation',
|
|
281
|
-
'__dataclass__init__fields__5__default',
|
|
282
|
-
),
|
|
283
|
-
cls_names=(
|
|
284
|
-
('ommlds.backends.tavily.protocol', 'FieldOptions'),
|
|
285
|
-
),
|
|
286
|
-
)
|
|
287
|
-
def _process_dataclass__2c74992a67cabe7397fb3d1cc57b660ca4f1462c():
|
|
288
|
-
def _process_dataclass(
|
|
289
|
-
*,
|
|
290
|
-
__dataclass__cls,
|
|
291
|
-
__dataclass__init__fields__0__annotation,
|
|
292
|
-
__dataclass__init__fields__0__default,
|
|
293
|
-
__dataclass__init__fields__1__annotation,
|
|
294
|
-
__dataclass__init__fields__1__check_type,
|
|
295
|
-
__dataclass__init__fields__1__default,
|
|
296
|
-
__dataclass__init__fields__2__annotation,
|
|
297
|
-
__dataclass__init__fields__2__default,
|
|
298
|
-
__dataclass__init__fields__3__annotation,
|
|
299
|
-
__dataclass__init__fields__3__default,
|
|
300
|
-
__dataclass__init__fields__4__annotation,
|
|
301
|
-
__dataclass__init__fields__4__default,
|
|
302
|
-
__dataclass__init__fields__5__annotation,
|
|
303
|
-
__dataclass__init__fields__5__default,
|
|
304
|
-
__dataclass__FieldFnValidationError, # noqa
|
|
305
|
-
__dataclass__FieldTypeValidationError, # noqa
|
|
306
|
-
__dataclass__FnValidationError, # noqa
|
|
307
|
-
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
308
|
-
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
309
|
-
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
310
|
-
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
311
|
-
__dataclass__None=None, # noqa
|
|
312
|
-
__dataclass__TypeError=TypeError, # noqa
|
|
313
|
-
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
314
|
-
__dataclass__isinstance=isinstance, # noqa
|
|
315
|
-
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
316
|
-
__dataclass__property=property, # noqa
|
|
317
|
-
):
|
|
318
|
-
def __copy__(self):
|
|
319
|
-
if self.__class__ is not __dataclass__cls:
|
|
320
|
-
raise TypeError(self)
|
|
321
|
-
return __dataclass__cls( # noqa
|
|
322
|
-
omit_if=self.omit_if,
|
|
323
|
-
default=self.default,
|
|
324
|
-
embed=self.embed,
|
|
325
|
-
generic_replace=self.generic_replace,
|
|
326
|
-
no_marshal=self.no_marshal,
|
|
327
|
-
no_unmarshal=self.no_unmarshal,
|
|
328
|
-
)
|
|
329
|
-
|
|
330
|
-
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
331
|
-
if '__copy__' in __dataclass__cls.__dict__:
|
|
332
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
333
|
-
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
334
|
-
|
|
335
|
-
def __eq__(self, other):
|
|
336
|
-
if self is other:
|
|
337
|
-
return True
|
|
338
|
-
if self.__class__ is not other.__class__:
|
|
339
|
-
return NotImplemented
|
|
340
|
-
return (
|
|
341
|
-
self.omit_if == other.omit_if and
|
|
342
|
-
self.default == other.default and
|
|
343
|
-
self.embed == other.embed and
|
|
344
|
-
self.generic_replace == other.generic_replace and
|
|
345
|
-
self.no_marshal == other.no_marshal and
|
|
346
|
-
self.no_unmarshal == other.no_unmarshal
|
|
347
|
-
)
|
|
348
|
-
|
|
349
|
-
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
350
|
-
if '__eq__' in __dataclass__cls.__dict__:
|
|
351
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
352
|
-
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
353
|
-
|
|
354
|
-
__dataclass___setattr_frozen_fields = {
|
|
355
|
-
'omit_if',
|
|
356
|
-
'default',
|
|
357
|
-
'embed',
|
|
358
|
-
'generic_replace',
|
|
359
|
-
'no_marshal',
|
|
360
|
-
'no_unmarshal',
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
def __setattr__(self, name, value):
|
|
364
|
-
if (
|
|
365
|
-
type(self) is __dataclass__cls
|
|
366
|
-
or name in __dataclass___setattr_frozen_fields
|
|
367
|
-
):
|
|
368
|
-
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
369
|
-
super(__dataclass__cls, self).__setattr__(name, value)
|
|
370
|
-
|
|
371
|
-
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
372
|
-
if '__setattr__' in __dataclass__cls.__dict__:
|
|
373
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
374
|
-
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
375
|
-
|
|
376
|
-
__dataclass___delattr_frozen_fields = {
|
|
377
|
-
'omit_if',
|
|
378
|
-
'default',
|
|
379
|
-
'embed',
|
|
380
|
-
'generic_replace',
|
|
381
|
-
'no_marshal',
|
|
382
|
-
'no_unmarshal',
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
def __delattr__(self, name):
|
|
386
|
-
if (
|
|
387
|
-
type(self) is __dataclass__cls
|
|
388
|
-
or name in __dataclass___delattr_frozen_fields
|
|
389
|
-
):
|
|
390
|
-
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
391
|
-
super(__dataclass__cls, self).__delattr__(name)
|
|
392
|
-
|
|
393
|
-
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
394
|
-
if '__delattr__' in __dataclass__cls.__dict__:
|
|
395
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
396
|
-
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
397
|
-
|
|
398
|
-
def __hash__(self):
|
|
399
|
-
return hash((
|
|
400
|
-
self.omit_if,
|
|
401
|
-
self.default,
|
|
402
|
-
self.embed,
|
|
403
|
-
self.generic_replace,
|
|
404
|
-
self.no_marshal,
|
|
405
|
-
self.no_unmarshal,
|
|
406
|
-
))
|
|
407
|
-
|
|
408
|
-
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
409
|
-
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
410
|
-
|
|
411
|
-
def __init__(
|
|
412
|
-
self,
|
|
413
|
-
*,
|
|
414
|
-
omit_if: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
415
|
-
default: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
416
|
-
embed: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
417
|
-
generic_replace: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
418
|
-
no_marshal: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
419
|
-
no_unmarshal: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
420
|
-
) -> __dataclass__None:
|
|
421
|
-
if not __dataclass__isinstance(default, __dataclass__init__fields__1__check_type):
|
|
422
|
-
raise __dataclass__FieldTypeValidationError(
|
|
423
|
-
obj=self,
|
|
424
|
-
type=__dataclass__init__fields__1__check_type,
|
|
425
|
-
field='default',
|
|
426
|
-
value=default,
|
|
427
|
-
)
|
|
428
|
-
__dataclass__object_setattr(self, 'omit_if', omit_if)
|
|
429
|
-
__dataclass__object_setattr(self, 'default', default)
|
|
430
|
-
__dataclass__object_setattr(self, 'embed', embed)
|
|
431
|
-
__dataclass__object_setattr(self, 'generic_replace', generic_replace)
|
|
432
|
-
__dataclass__object_setattr(self, 'no_marshal', no_marshal)
|
|
433
|
-
__dataclass__object_setattr(self, 'no_unmarshal', no_unmarshal)
|
|
434
|
-
|
|
435
|
-
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
436
|
-
if '__init__' in __dataclass__cls.__dict__:
|
|
437
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
438
|
-
setattr(__dataclass__cls, '__init__', __init__)
|
|
439
|
-
|
|
440
|
-
@__dataclass___recursive_repr()
|
|
441
|
-
def __repr__(self):
|
|
442
|
-
parts = []
|
|
443
|
-
parts.append(f"omit_if={self.omit_if!r}")
|
|
444
|
-
parts.append(f"default={self.default!r}")
|
|
445
|
-
parts.append(f"embed={self.embed!r}")
|
|
446
|
-
parts.append(f"generic_replace={self.generic_replace!r}")
|
|
447
|
-
parts.append(f"no_marshal={self.no_marshal!r}")
|
|
448
|
-
parts.append(f"no_unmarshal={self.no_unmarshal!r}")
|
|
449
|
-
return (
|
|
450
|
-
f"{self.__class__.__qualname__}("
|
|
451
|
-
f"{', '.join(parts)}"
|
|
452
|
-
f")"
|
|
453
|
-
)
|
|
454
|
-
|
|
455
|
-
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
456
|
-
if '__repr__' in __dataclass__cls.__dict__:
|
|
457
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
458
|
-
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
459
|
-
|
|
460
|
-
return _process_dataclass
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
@_register(
|
|
464
|
-
plan_repr=(
|
|
465
|
-
"Plans(tup=(CopyPlan(fields=('field_naming', 'unknown_field', 'source_field', 'field_defaults', 'ignore_unknown"
|
|
466
|
-
"')), EqPlan(fields=('field_naming', 'unknown_field', 'source_field', 'field_defaults', 'ignore_unknown')), Fro"
|
|
467
|
-
"zenPlan(fields=('field_naming', 'unknown_field', 'source_field', 'field_defaults', 'ignore_unknown'), allow_dy"
|
|
468
|
-
"namic_dunder_attrs=False), HashPlan(action='add', fields=('field_naming', 'unknown_field', 'source_field', 'fi"
|
|
469
|
-
"eld_defaults', 'ignore_unknown'), cache=False), InitPlan(fields=(InitPlan.Field(name='field_naming', annotatio"
|
|
470
|
-
"n=OpRef(name='init.fields.0.annotation'), default=OpRef(name='init.fields.0.default'), default_factory=None, i"
|
|
471
|
-
"nit=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPla"
|
|
472
|
-
"n.Field(name='unknown_field', annotation=OpRef(name='init.fields.1.annotation'), default=OpRef(name='init.fiel"
|
|
473
|
-
"ds.1.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, v"
|
|
474
|
-
"alidate=None, check_type=None), InitPlan.Field(name='source_field', annotation=OpRef(name='init.fields.2.annot"
|
|
475
|
-
"ation'), default=OpRef(name='init.fields.2.default'), default_factory=None, init=True, override=False, field_t"
|
|
476
|
-
"ype=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='field_defaults', an"
|
|
477
|
-
"notation=OpRef(name='init.fields.3.annotation'), default=OpRef(name='init.fields.3.default'), default_factory="
|
|
478
|
-
"None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), "
|
|
479
|
-
"InitPlan.Field(name='ignore_unknown', annotation=OpRef(name='init.fields.4.annotation'), default=OpRef(name='i"
|
|
480
|
-
"nit.fields.4.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce"
|
|
481
|
-
"=None, validate=None, check_type=None)), self_param='self', std_params=(), kw_only_params=('field_naming', 'un"
|
|
482
|
-
"known_field', 'source_field', 'field_defaults', 'ignore_unknown'), frozen=True, slots=False, post_init_params="
|
|
483
|
-
"None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='field_naming', kw_only=True, fn=Non"
|
|
484
|
-
"e), ReprPlan.Field(name='unknown_field', kw_only=True, fn=None), ReprPlan.Field(name='source_field', kw_only=T"
|
|
485
|
-
"rue, fn=None), ReprPlan.Field(name='field_defaults', kw_only=True, fn=None), ReprPlan.Field(name='ignore_unkno"
|
|
486
|
-
"wn', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
487
|
-
),
|
|
488
|
-
plan_repr_sha1='3a02ae2ce08461319189d2ccea7ecf32459e24c3',
|
|
489
|
-
op_ref_idents=(
|
|
490
|
-
'__dataclass__init__fields__0__annotation',
|
|
491
|
-
'__dataclass__init__fields__0__default',
|
|
492
|
-
'__dataclass__init__fields__1__annotation',
|
|
493
|
-
'__dataclass__init__fields__1__default',
|
|
494
|
-
'__dataclass__init__fields__2__annotation',
|
|
495
|
-
'__dataclass__init__fields__2__default',
|
|
496
|
-
'__dataclass__init__fields__3__annotation',
|
|
497
|
-
'__dataclass__init__fields__3__default',
|
|
498
|
-
'__dataclass__init__fields__4__annotation',
|
|
499
|
-
'__dataclass__init__fields__4__default',
|
|
500
|
-
),
|
|
501
|
-
cls_names=(
|
|
502
|
-
('ommlds.backends.tavily.protocol', 'ObjectMetadata'),
|
|
503
|
-
),
|
|
504
|
-
)
|
|
505
|
-
def _process_dataclass__3a02ae2ce08461319189d2ccea7ecf32459e24c3():
|
|
506
|
-
def _process_dataclass(
|
|
507
|
-
*,
|
|
508
|
-
__dataclass__cls,
|
|
509
|
-
__dataclass__init__fields__0__annotation,
|
|
510
|
-
__dataclass__init__fields__0__default,
|
|
511
|
-
__dataclass__init__fields__1__annotation,
|
|
512
|
-
__dataclass__init__fields__1__default,
|
|
513
|
-
__dataclass__init__fields__2__annotation,
|
|
514
|
-
__dataclass__init__fields__2__default,
|
|
515
|
-
__dataclass__init__fields__3__annotation,
|
|
516
|
-
__dataclass__init__fields__3__default,
|
|
517
|
-
__dataclass__init__fields__4__annotation,
|
|
518
|
-
__dataclass__init__fields__4__default,
|
|
519
|
-
__dataclass__FieldFnValidationError, # noqa
|
|
520
|
-
__dataclass__FieldTypeValidationError, # noqa
|
|
521
|
-
__dataclass__FnValidationError, # noqa
|
|
522
|
-
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
523
|
-
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
524
|
-
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
525
|
-
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
526
|
-
__dataclass__None=None, # noqa
|
|
527
|
-
__dataclass__TypeError=TypeError, # noqa
|
|
528
|
-
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
529
|
-
__dataclass__isinstance=isinstance, # noqa
|
|
530
|
-
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
531
|
-
__dataclass__property=property, # noqa
|
|
532
|
-
):
|
|
533
|
-
def __copy__(self):
|
|
534
|
-
if self.__class__ is not __dataclass__cls:
|
|
535
|
-
raise TypeError(self)
|
|
536
|
-
return __dataclass__cls( # noqa
|
|
537
|
-
field_naming=self.field_naming,
|
|
538
|
-
unknown_field=self.unknown_field,
|
|
539
|
-
source_field=self.source_field,
|
|
540
|
-
field_defaults=self.field_defaults,
|
|
541
|
-
ignore_unknown=self.ignore_unknown,
|
|
542
|
-
)
|
|
543
|
-
|
|
544
|
-
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
545
|
-
if '__copy__' in __dataclass__cls.__dict__:
|
|
546
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
547
|
-
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
548
|
-
|
|
549
|
-
def __eq__(self, other):
|
|
550
|
-
if self is other:
|
|
551
|
-
return True
|
|
552
|
-
if self.__class__ is not other.__class__:
|
|
553
|
-
return NotImplemented
|
|
554
|
-
return (
|
|
555
|
-
self.field_naming == other.field_naming and
|
|
556
|
-
self.unknown_field == other.unknown_field and
|
|
557
|
-
self.source_field == other.source_field and
|
|
558
|
-
self.field_defaults == other.field_defaults and
|
|
559
|
-
self.ignore_unknown == other.ignore_unknown
|
|
560
|
-
)
|
|
561
|
-
|
|
562
|
-
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
563
|
-
if '__eq__' in __dataclass__cls.__dict__:
|
|
564
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
565
|
-
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
566
|
-
|
|
567
|
-
__dataclass___setattr_frozen_fields = {
|
|
568
|
-
'field_naming',
|
|
569
|
-
'unknown_field',
|
|
570
|
-
'source_field',
|
|
571
|
-
'field_defaults',
|
|
572
|
-
'ignore_unknown',
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
def __setattr__(self, name, value):
|
|
576
|
-
if (
|
|
577
|
-
type(self) is __dataclass__cls
|
|
578
|
-
or name in __dataclass___setattr_frozen_fields
|
|
579
|
-
):
|
|
580
|
-
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
581
|
-
super(__dataclass__cls, self).__setattr__(name, value)
|
|
582
|
-
|
|
583
|
-
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
584
|
-
if '__setattr__' in __dataclass__cls.__dict__:
|
|
585
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
586
|
-
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
587
|
-
|
|
588
|
-
__dataclass___delattr_frozen_fields = {
|
|
589
|
-
'field_naming',
|
|
590
|
-
'unknown_field',
|
|
591
|
-
'source_field',
|
|
592
|
-
'field_defaults',
|
|
593
|
-
'ignore_unknown',
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
def __delattr__(self, name):
|
|
597
|
-
if (
|
|
598
|
-
type(self) is __dataclass__cls
|
|
599
|
-
or name in __dataclass___delattr_frozen_fields
|
|
600
|
-
):
|
|
601
|
-
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
602
|
-
super(__dataclass__cls, self).__delattr__(name)
|
|
603
|
-
|
|
604
|
-
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
605
|
-
if '__delattr__' in __dataclass__cls.__dict__:
|
|
606
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
607
|
-
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
608
|
-
|
|
609
|
-
def __hash__(self):
|
|
610
|
-
return hash((
|
|
611
|
-
self.field_naming,
|
|
612
|
-
self.unknown_field,
|
|
613
|
-
self.source_field,
|
|
614
|
-
self.field_defaults,
|
|
615
|
-
self.ignore_unknown,
|
|
616
|
-
))
|
|
617
|
-
|
|
618
|
-
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
619
|
-
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
620
|
-
|
|
621
|
-
def __init__(
|
|
622
|
-
self,
|
|
623
|
-
*,
|
|
624
|
-
field_naming: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
625
|
-
unknown_field: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
626
|
-
source_field: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
627
|
-
field_defaults: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
628
|
-
ignore_unknown: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
629
|
-
) -> __dataclass__None:
|
|
630
|
-
__dataclass__object_setattr(self, 'field_naming', field_naming)
|
|
631
|
-
__dataclass__object_setattr(self, 'unknown_field', unknown_field)
|
|
632
|
-
__dataclass__object_setattr(self, 'source_field', source_field)
|
|
633
|
-
__dataclass__object_setattr(self, 'field_defaults', field_defaults)
|
|
634
|
-
__dataclass__object_setattr(self, 'ignore_unknown', ignore_unknown)
|
|
635
|
-
|
|
636
|
-
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
637
|
-
if '__init__' in __dataclass__cls.__dict__:
|
|
638
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
639
|
-
setattr(__dataclass__cls, '__init__', __init__)
|
|
640
|
-
|
|
641
|
-
@__dataclass___recursive_repr()
|
|
642
|
-
def __repr__(self):
|
|
643
|
-
parts = []
|
|
644
|
-
parts.append(f"field_naming={self.field_naming!r}")
|
|
645
|
-
parts.append(f"unknown_field={self.unknown_field!r}")
|
|
646
|
-
parts.append(f"source_field={self.source_field!r}")
|
|
647
|
-
parts.append(f"field_defaults={self.field_defaults!r}")
|
|
648
|
-
parts.append(f"ignore_unknown={self.ignore_unknown!r}")
|
|
649
|
-
return (
|
|
650
|
-
f"{self.__class__.__qualname__}("
|
|
651
|
-
f"{', '.join(parts)}"
|
|
652
|
-
f")"
|
|
653
|
-
)
|
|
654
|
-
|
|
655
|
-
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
656
|
-
if '__repr__' in __dataclass__cls.__dict__:
|
|
657
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
658
|
-
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
659
|
-
|
|
660
|
-
return _process_dataclass
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
@_register(
|
|
664
|
-
plan_repr=(
|
|
665
|
-
"Plans(tup=(CopyPlan(fields=('results', 'failed_results', 'response_time', 'request_id')), EqPlan(fields=('resu"
|
|
666
|
-
"lts', 'failed_results', 'response_time', 'request_id')), FrozenPlan(fields=('results', 'failed_results', 'resp"
|
|
667
|
-
"onse_time', 'request_id'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('results', 'faile"
|
|
668
|
-
"d_results', 'response_time', 'request_id'), cache=False), InitPlan(fields=(InitPlan.Field(name='results', anno"
|
|
669
|
-
"tation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, override=False, "
|
|
670
|
-
"field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='failed_resul"
|
|
671
|
-
"ts', annotation=OpRef(name='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_f"
|
|
672
|
-
"actory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type="
|
|
673
|
-
"None), InitPlan.Field(name='response_time', annotation=OpRef(name='init.fields.2.annotation'), default=OpRef(n"
|
|
674
|
-
"ame='init.fields.2.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, "
|
|
675
|
-
"coerce=None, validate=None, check_type=None), InitPlan.Field(name='request_id', annotation=OpRef(name='init.fi"
|
|
676
|
-
"elds.3.annotation'), default=OpRef(name='init.fields.3.default'), default_factory=None, init=True, override=Fa"
|
|
677
|
-
"lse, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_para"
|
|
678
|
-
"ms=(), kw_only_params=('results', 'failed_results', 'response_time', 'request_id'), frozen=True, slots=False, "
|
|
679
|
-
"post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='results', kw_only="
|
|
680
|
-
"True, fn=None), ReprPlan.Field(name='failed_results', kw_only=True, fn=None), ReprPlan.Field(name='response_ti"
|
|
681
|
-
"me', kw_only=True, fn=None), ReprPlan.Field(name='request_id', kw_only=True, fn=None)), id=False, terse=False,"
|
|
682
|
-
" default_fn=None)))"
|
|
683
|
-
),
|
|
684
|
-
plan_repr_sha1='3f646ce22fdfdf2263a93ac28fa615a485690a8c',
|
|
685
|
-
op_ref_idents=(
|
|
686
|
-
'__dataclass__init__fields__0__annotation',
|
|
687
|
-
'__dataclass__init__fields__1__annotation',
|
|
688
|
-
'__dataclass__init__fields__1__default',
|
|
689
|
-
'__dataclass__init__fields__2__annotation',
|
|
690
|
-
'__dataclass__init__fields__2__default',
|
|
691
|
-
'__dataclass__init__fields__3__annotation',
|
|
692
|
-
'__dataclass__init__fields__3__default',
|
|
693
|
-
),
|
|
694
|
-
cls_names=(
|
|
695
|
-
('ommlds.backends.tavily.protocol', 'ExtractResponse'),
|
|
696
|
-
),
|
|
697
|
-
)
|
|
698
|
-
def _process_dataclass__3f646ce22fdfdf2263a93ac28fa615a485690a8c():
|
|
699
|
-
def _process_dataclass(
|
|
700
|
-
*,
|
|
701
|
-
__dataclass__cls,
|
|
702
|
-
__dataclass__init__fields__0__annotation,
|
|
703
|
-
__dataclass__init__fields__1__annotation,
|
|
704
|
-
__dataclass__init__fields__1__default,
|
|
705
|
-
__dataclass__init__fields__2__annotation,
|
|
706
|
-
__dataclass__init__fields__2__default,
|
|
707
|
-
__dataclass__init__fields__3__annotation,
|
|
708
|
-
__dataclass__init__fields__3__default,
|
|
709
|
-
__dataclass__FieldFnValidationError, # noqa
|
|
710
|
-
__dataclass__FieldTypeValidationError, # noqa
|
|
711
|
-
__dataclass__FnValidationError, # noqa
|
|
712
|
-
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
713
|
-
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
714
|
-
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
715
|
-
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
716
|
-
__dataclass__None=None, # noqa
|
|
717
|
-
__dataclass__TypeError=TypeError, # noqa
|
|
718
|
-
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
719
|
-
__dataclass__isinstance=isinstance, # noqa
|
|
720
|
-
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
721
|
-
__dataclass__property=property, # noqa
|
|
722
|
-
):
|
|
723
|
-
def __copy__(self):
|
|
724
|
-
if self.__class__ is not __dataclass__cls:
|
|
725
|
-
raise TypeError(self)
|
|
726
|
-
return __dataclass__cls( # noqa
|
|
727
|
-
results=self.results,
|
|
728
|
-
failed_results=self.failed_results,
|
|
729
|
-
response_time=self.response_time,
|
|
730
|
-
request_id=self.request_id,
|
|
731
|
-
)
|
|
732
|
-
|
|
733
|
-
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
734
|
-
if '__copy__' in __dataclass__cls.__dict__:
|
|
735
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
736
|
-
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
737
|
-
|
|
738
|
-
def __eq__(self, other):
|
|
739
|
-
if self is other:
|
|
740
|
-
return True
|
|
741
|
-
if self.__class__ is not other.__class__:
|
|
742
|
-
return NotImplemented
|
|
743
|
-
return (
|
|
744
|
-
self.results == other.results and
|
|
745
|
-
self.failed_results == other.failed_results and
|
|
746
|
-
self.response_time == other.response_time and
|
|
747
|
-
self.request_id == other.request_id
|
|
748
|
-
)
|
|
749
|
-
|
|
750
|
-
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
751
|
-
if '__eq__' in __dataclass__cls.__dict__:
|
|
752
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
753
|
-
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
754
|
-
|
|
755
|
-
__dataclass___setattr_frozen_fields = {
|
|
756
|
-
'results',
|
|
757
|
-
'failed_results',
|
|
758
|
-
'response_time',
|
|
759
|
-
'request_id',
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
def __setattr__(self, name, value):
|
|
763
|
-
if (
|
|
764
|
-
type(self) is __dataclass__cls
|
|
765
|
-
or name in __dataclass___setattr_frozen_fields
|
|
766
|
-
):
|
|
767
|
-
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
768
|
-
super(__dataclass__cls, self).__setattr__(name, value)
|
|
769
|
-
|
|
770
|
-
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
771
|
-
if '__setattr__' in __dataclass__cls.__dict__:
|
|
772
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
773
|
-
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
774
|
-
|
|
775
|
-
__dataclass___delattr_frozen_fields = {
|
|
776
|
-
'results',
|
|
777
|
-
'failed_results',
|
|
778
|
-
'response_time',
|
|
779
|
-
'request_id',
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
def __delattr__(self, name):
|
|
783
|
-
if (
|
|
784
|
-
type(self) is __dataclass__cls
|
|
785
|
-
or name in __dataclass___delattr_frozen_fields
|
|
786
|
-
):
|
|
787
|
-
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
788
|
-
super(__dataclass__cls, self).__delattr__(name)
|
|
789
|
-
|
|
790
|
-
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
791
|
-
if '__delattr__' in __dataclass__cls.__dict__:
|
|
792
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
793
|
-
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
794
|
-
|
|
795
|
-
def __hash__(self):
|
|
796
|
-
return hash((
|
|
797
|
-
self.results,
|
|
798
|
-
self.failed_results,
|
|
799
|
-
self.response_time,
|
|
800
|
-
self.request_id,
|
|
801
|
-
))
|
|
802
|
-
|
|
803
|
-
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
804
|
-
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
805
|
-
|
|
806
|
-
def __init__(
|
|
807
|
-
self,
|
|
808
|
-
*,
|
|
809
|
-
results: __dataclass__init__fields__0__annotation,
|
|
810
|
-
failed_results: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
811
|
-
response_time: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
812
|
-
request_id: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
813
|
-
) -> __dataclass__None:
|
|
814
|
-
__dataclass__object_setattr(self, 'results', results)
|
|
815
|
-
__dataclass__object_setattr(self, 'failed_results', failed_results)
|
|
816
|
-
__dataclass__object_setattr(self, 'response_time', response_time)
|
|
817
|
-
__dataclass__object_setattr(self, 'request_id', request_id)
|
|
818
|
-
|
|
819
|
-
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
820
|
-
if '__init__' in __dataclass__cls.__dict__:
|
|
821
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
822
|
-
setattr(__dataclass__cls, '__init__', __init__)
|
|
823
|
-
|
|
824
|
-
@__dataclass___recursive_repr()
|
|
825
|
-
def __repr__(self):
|
|
826
|
-
parts = []
|
|
827
|
-
parts.append(f"results={self.results!r}")
|
|
828
|
-
parts.append(f"failed_results={self.failed_results!r}")
|
|
829
|
-
parts.append(f"response_time={self.response_time!r}")
|
|
830
|
-
parts.append(f"request_id={self.request_id!r}")
|
|
831
|
-
return (
|
|
832
|
-
f"{self.__class__.__qualname__}("
|
|
833
|
-
f"{', '.join(parts)}"
|
|
834
|
-
f")"
|
|
835
|
-
)
|
|
836
|
-
|
|
837
|
-
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
838
|
-
if '__repr__' in __dataclass__cls.__dict__:
|
|
839
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
840
|
-
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
841
|
-
|
|
842
|
-
return _process_dataclass
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
@_register(
|
|
846
|
-
plan_repr=(
|
|
847
|
-
"Plans(tup=(CopyPlan(fields=('name', 'type', 'marshal_name', 'unmarshal_names', 'metadata', 'options')), EqPlan"
|
|
848
|
-
"(fields=('name', 'type', 'marshal_name', 'unmarshal_names', 'metadata', 'options')), FrozenPlan(fields=('name'"
|
|
849
|
-
", 'type', 'marshal_name', 'unmarshal_names', 'metadata', 'options'), allow_dynamic_dunder_attrs=False), HashPl"
|
|
850
|
-
"an(action='add', fields=('name', 'type', 'marshal_name', 'unmarshal_names', 'metadata', 'options'), cache=Fals"
|
|
851
|
-
"e), InitPlan(fields=(InitPlan.Field(name='name', annotation=OpRef(name='init.fields.0.annotation'), default=No"
|
|
852
|
-
"ne, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None"
|
|
853
|
-
", check_type=None), InitPlan.Field(name='type', annotation=OpRef(name='init.fields.1.annotation'), default=Non"
|
|
854
|
-
"e, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None,"
|
|
855
|
-
" check_type=None), InitPlan.Field(name='marshal_name', annotation=OpRef(name='init.fields.2.annotation'), defa"
|
|
856
|
-
"ult=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validat"
|
|
857
|
-
"e=None, check_type=None), InitPlan.Field(name='unmarshal_names', annotation=OpRef(name='init.fields.3.annotati"
|
|
858
|
-
"on'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=Non"
|
|
859
|
-
"e, validate=None, check_type=None), InitPlan.Field(name='metadata', annotation=OpRef(name='init.fields.4.annot"
|
|
860
|
-
"ation'), default=OpRef(name='init.fields.4.default'), default_factory=None, init=True, override=False, field_t"
|
|
861
|
-
"ype=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='options', annotatio"
|
|
862
|
-
"n=OpRef(name='init.fields.5.annotation'), default=OpRef(name='init.fields.5.default'), default_factory=None, i"
|
|
863
|
-
"nit=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_p"
|
|
864
|
-
"aram='self', std_params=(), kw_only_params=('name', 'type', 'marshal_name', 'unmarshal_names', 'metadata', 'op"
|
|
865
|
-
"tions'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(Repr"
|
|
866
|
-
"Plan.Field(name='name', kw_only=True, fn=None), ReprPlan.Field(name='type', kw_only=True, fn=None), ReprPlan.F"
|
|
867
|
-
"ield(name='marshal_name', kw_only=True, fn=None), ReprPlan.Field(name='unmarshal_names', kw_only=True, fn=None"
|
|
868
|
-
"), ReprPlan.Field(name='metadata', kw_only=True, fn=None), ReprPlan.Field(name='options', kw_only=True, fn=Non"
|
|
869
|
-
"e)), id=False, terse=False, default_fn=None)))"
|
|
241
|
+
"Plans(tup=(CopyPlan(fields=('results', 'failed_results', 'response_time', 'request_id')), EqPlan(fields=('resu"
|
|
242
|
+
"lts', 'failed_results', 'response_time', 'request_id')), FrozenPlan(fields=('results', 'failed_results', 'resp"
|
|
243
|
+
"onse_time', 'request_id'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('results', 'faile"
|
|
244
|
+
"d_results', 'response_time', 'request_id'), cache=False), InitPlan(fields=(InitPlan.Field(name='results', anno"
|
|
245
|
+
"tation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, override=False, "
|
|
246
|
+
"field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='failed_resul"
|
|
247
|
+
"ts', annotation=OpRef(name='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_f"
|
|
248
|
+
"actory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type="
|
|
249
|
+
"None), InitPlan.Field(name='response_time', annotation=OpRef(name='init.fields.2.annotation'), default=OpRef(n"
|
|
250
|
+
"ame='init.fields.2.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, "
|
|
251
|
+
"coerce=None, validate=None, check_type=None), InitPlan.Field(name='request_id', annotation=OpRef(name='init.fi"
|
|
252
|
+
"elds.3.annotation'), default=OpRef(name='init.fields.3.default'), default_factory=None, init=True, override=Fa"
|
|
253
|
+
"lse, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_para"
|
|
254
|
+
"ms=(), kw_only_params=('results', 'failed_results', 'response_time', 'request_id'), frozen=True, slots=False, "
|
|
255
|
+
"post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='results', kw_only="
|
|
256
|
+
"True, fn=None), ReprPlan.Field(name='failed_results', kw_only=True, fn=None), ReprPlan.Field(name='response_ti"
|
|
257
|
+
"me', kw_only=True, fn=None), ReprPlan.Field(name='request_id', kw_only=True, fn=None)), id=False, terse=False,"
|
|
258
|
+
" default_fn=None)))"
|
|
870
259
|
),
|
|
871
|
-
plan_repr_sha1='
|
|
260
|
+
plan_repr_sha1='3f646ce22fdfdf2263a93ac28fa615a485690a8c',
|
|
872
261
|
op_ref_idents=(
|
|
873
262
|
'__dataclass__init__fields__0__annotation',
|
|
874
263
|
'__dataclass__init__fields__1__annotation',
|
|
264
|
+
'__dataclass__init__fields__1__default',
|
|
875
265
|
'__dataclass__init__fields__2__annotation',
|
|
266
|
+
'__dataclass__init__fields__2__default',
|
|
876
267
|
'__dataclass__init__fields__3__annotation',
|
|
877
|
-
'
|
|
878
|
-
'__dataclass__init__fields__4__default',
|
|
879
|
-
'__dataclass__init__fields__5__annotation',
|
|
880
|
-
'__dataclass__init__fields__5__default',
|
|
268
|
+
'__dataclass__init__fields__3__default',
|
|
881
269
|
),
|
|
882
270
|
cls_names=(
|
|
883
|
-
('ommlds.backends.tavily.protocol', '
|
|
271
|
+
('ommlds.backends.tavily.protocol', 'ExtractResponse'),
|
|
884
272
|
),
|
|
885
273
|
)
|
|
886
|
-
def
|
|
274
|
+
def _process_dataclass__3f646ce22fdfdf2263a93ac28fa615a485690a8c():
|
|
887
275
|
def _process_dataclass(
|
|
888
276
|
*,
|
|
889
277
|
__dataclass__cls,
|
|
890
278
|
__dataclass__init__fields__0__annotation,
|
|
891
279
|
__dataclass__init__fields__1__annotation,
|
|
280
|
+
__dataclass__init__fields__1__default,
|
|
892
281
|
__dataclass__init__fields__2__annotation,
|
|
282
|
+
__dataclass__init__fields__2__default,
|
|
893
283
|
__dataclass__init__fields__3__annotation,
|
|
894
|
-
|
|
895
|
-
__dataclass__init__fields__4__default,
|
|
896
|
-
__dataclass__init__fields__5__annotation,
|
|
897
|
-
__dataclass__init__fields__5__default,
|
|
284
|
+
__dataclass__init__fields__3__default,
|
|
898
285
|
__dataclass__FieldFnValidationError, # noqa
|
|
899
286
|
__dataclass__FieldTypeValidationError, # noqa
|
|
900
287
|
__dataclass__FnValidationError, # noqa
|
|
@@ -913,12 +300,10 @@ def _process_dataclass__52efba591171513abf94b0833a0c230d4abd829e():
|
|
|
913
300
|
if self.__class__ is not __dataclass__cls:
|
|
914
301
|
raise TypeError(self)
|
|
915
302
|
return __dataclass__cls( # noqa
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
metadata=self.metadata,
|
|
921
|
-
options=self.options,
|
|
303
|
+
results=self.results,
|
|
304
|
+
failed_results=self.failed_results,
|
|
305
|
+
response_time=self.response_time,
|
|
306
|
+
request_id=self.request_id,
|
|
922
307
|
)
|
|
923
308
|
|
|
924
309
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -932,12 +317,10 @@ def _process_dataclass__52efba591171513abf94b0833a0c230d4abd829e():
|
|
|
932
317
|
if self.__class__ is not other.__class__:
|
|
933
318
|
return NotImplemented
|
|
934
319
|
return (
|
|
935
|
-
self.
|
|
936
|
-
self.
|
|
937
|
-
self.
|
|
938
|
-
self.
|
|
939
|
-
self.metadata == other.metadata and
|
|
940
|
-
self.options == other.options
|
|
320
|
+
self.results == other.results and
|
|
321
|
+
self.failed_results == other.failed_results and
|
|
322
|
+
self.response_time == other.response_time and
|
|
323
|
+
self.request_id == other.request_id
|
|
941
324
|
)
|
|
942
325
|
|
|
943
326
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -946,12 +329,10 @@ def _process_dataclass__52efba591171513abf94b0833a0c230d4abd829e():
|
|
|
946
329
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
947
330
|
|
|
948
331
|
__dataclass___setattr_frozen_fields = {
|
|
949
|
-
'
|
|
950
|
-
'
|
|
951
|
-
'
|
|
952
|
-
'
|
|
953
|
-
'metadata',
|
|
954
|
-
'options',
|
|
332
|
+
'results',
|
|
333
|
+
'failed_results',
|
|
334
|
+
'response_time',
|
|
335
|
+
'request_id',
|
|
955
336
|
}
|
|
956
337
|
|
|
957
338
|
def __setattr__(self, name, value):
|
|
@@ -968,12 +349,10 @@ def _process_dataclass__52efba591171513abf94b0833a0c230d4abd829e():
|
|
|
968
349
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
969
350
|
|
|
970
351
|
__dataclass___delattr_frozen_fields = {
|
|
971
|
-
'
|
|
972
|
-
'
|
|
973
|
-
'
|
|
974
|
-
'
|
|
975
|
-
'metadata',
|
|
976
|
-
'options',
|
|
352
|
+
'results',
|
|
353
|
+
'failed_results',
|
|
354
|
+
'response_time',
|
|
355
|
+
'request_id',
|
|
977
356
|
}
|
|
978
357
|
|
|
979
358
|
def __delattr__(self, name):
|
|
@@ -991,12 +370,10 @@ def _process_dataclass__52efba591171513abf94b0833a0c230d4abd829e():
|
|
|
991
370
|
|
|
992
371
|
def __hash__(self):
|
|
993
372
|
return hash((
|
|
994
|
-
self.
|
|
995
|
-
self.
|
|
996
|
-
self.
|
|
997
|
-
self.
|
|
998
|
-
self.metadata,
|
|
999
|
-
self.options,
|
|
373
|
+
self.results,
|
|
374
|
+
self.failed_results,
|
|
375
|
+
self.response_time,
|
|
376
|
+
self.request_id,
|
|
1000
377
|
))
|
|
1001
378
|
|
|
1002
379
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -1005,19 +382,15 @@ def _process_dataclass__52efba591171513abf94b0833a0c230d4abd829e():
|
|
|
1005
382
|
def __init__(
|
|
1006
383
|
self,
|
|
1007
384
|
*,
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
metadata: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
1013
|
-
options: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
385
|
+
results: __dataclass__init__fields__0__annotation,
|
|
386
|
+
failed_results: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
387
|
+
response_time: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
388
|
+
request_id: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
1014
389
|
) -> __dataclass__None:
|
|
1015
|
-
__dataclass__object_setattr(self, '
|
|
1016
|
-
__dataclass__object_setattr(self, '
|
|
1017
|
-
__dataclass__object_setattr(self, '
|
|
1018
|
-
__dataclass__object_setattr(self, '
|
|
1019
|
-
__dataclass__object_setattr(self, 'metadata', metadata)
|
|
1020
|
-
__dataclass__object_setattr(self, 'options', options)
|
|
390
|
+
__dataclass__object_setattr(self, 'results', results)
|
|
391
|
+
__dataclass__object_setattr(self, 'failed_results', failed_results)
|
|
392
|
+
__dataclass__object_setattr(self, 'response_time', response_time)
|
|
393
|
+
__dataclass__object_setattr(self, 'request_id', request_id)
|
|
1021
394
|
|
|
1022
395
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1023
396
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -1027,12 +400,10 @@ def _process_dataclass__52efba591171513abf94b0833a0c230d4abd829e():
|
|
|
1027
400
|
@__dataclass___recursive_repr()
|
|
1028
401
|
def __repr__(self):
|
|
1029
402
|
parts = []
|
|
1030
|
-
parts.append(f"
|
|
1031
|
-
parts.append(f"
|
|
1032
|
-
parts.append(f"
|
|
1033
|
-
parts.append(f"
|
|
1034
|
-
parts.append(f"metadata={self.metadata!r}")
|
|
1035
|
-
parts.append(f"options={self.options!r}")
|
|
403
|
+
parts.append(f"results={self.results!r}")
|
|
404
|
+
parts.append(f"failed_results={self.failed_results!r}")
|
|
405
|
+
parts.append(f"response_time={self.response_time!r}")
|
|
406
|
+
parts.append(f"request_id={self.request_id!r}")
|
|
1036
407
|
return (
|
|
1037
408
|
f"{self.__class__.__qualname__}("
|
|
1038
409
|
f"{', '.join(parts)}"
|
|
@@ -1782,236 +1153,10 @@ def _process_dataclass__97f06c15926ba4bb103416285c597e19032efb28():
|
|
|
1782
1153
|
|
|
1783
1154
|
def __hash__(self):
|
|
1784
1155
|
return hash((
|
|
1785
|
-
self.url,
|
|
1786
|
-
self.raw_content,
|
|
1787
|
-
self.images,
|
|
1788
|
-
self.favicon,
|
|
1789
|
-
))
|
|
1790
|
-
|
|
1791
|
-
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
1792
|
-
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
1793
|
-
|
|
1794
|
-
def __init__(
|
|
1795
|
-
self,
|
|
1796
|
-
*,
|
|
1797
|
-
url: __dataclass__init__fields__0__annotation,
|
|
1798
|
-
raw_content: __dataclass__init__fields__1__annotation,
|
|
1799
|
-
images: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
1800
|
-
favicon: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
1801
|
-
) -> __dataclass__None:
|
|
1802
|
-
__dataclass__object_setattr(self, 'url', url)
|
|
1803
|
-
__dataclass__object_setattr(self, 'raw_content', raw_content)
|
|
1804
|
-
__dataclass__object_setattr(self, 'images', images)
|
|
1805
|
-
__dataclass__object_setattr(self, 'favicon', favicon)
|
|
1806
|
-
|
|
1807
|
-
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1808
|
-
if '__init__' in __dataclass__cls.__dict__:
|
|
1809
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
1810
|
-
setattr(__dataclass__cls, '__init__', __init__)
|
|
1811
|
-
|
|
1812
|
-
@__dataclass___recursive_repr()
|
|
1813
|
-
def __repr__(self):
|
|
1814
|
-
parts = []
|
|
1815
|
-
parts.append(f"url={self.url!r}")
|
|
1816
|
-
parts.append(f"raw_content={self.raw_content!r}")
|
|
1817
|
-
parts.append(f"images={self.images!r}")
|
|
1818
|
-
parts.append(f"favicon={self.favicon!r}")
|
|
1819
|
-
return (
|
|
1820
|
-
f"{self.__class__.__qualname__}("
|
|
1821
|
-
f"{', '.join(parts)}"
|
|
1822
|
-
f")"
|
|
1823
|
-
)
|
|
1824
|
-
|
|
1825
|
-
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
1826
|
-
if '__repr__' in __dataclass__cls.__dict__:
|
|
1827
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
1828
|
-
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
1829
|
-
|
|
1830
|
-
return _process_dataclass
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
@_register(
|
|
1834
|
-
plan_repr=(
|
|
1835
|
-
"Plans(tup=(CopyPlan(fields=('name', 'alts', 'options', 'marshaler', 'marshaler_factory', 'unmarshaler', 'unmar"
|
|
1836
|
-
"shaler_factory')), EqPlan(fields=('name', 'alts', 'options', 'marshaler', 'marshaler_factory', 'unmarshaler', "
|
|
1837
|
-
"'unmarshaler_factory')), FrozenPlan(fields=('name', 'alts', 'options', 'marshaler', 'marshaler_factory', 'unma"
|
|
1838
|
-
"rshaler', 'unmarshaler_factory'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('name', 'a"
|
|
1839
|
-
"lts', 'options', 'marshaler', 'marshaler_factory', 'unmarshaler', 'unmarshaler_factory'), cache=False), InitPl"
|
|
1840
|
-
"an(fields=(InitPlan.Field(name='name', annotation=OpRef(name='init.fields.0.annotation'), default=OpRef(name='"
|
|
1841
|
-
"init.fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerc"
|
|
1842
|
-
"e=None, validate=None, check_type=None), InitPlan.Field(name='alts', annotation=OpRef(name='init.fields.1.anno"
|
|
1843
|
-
"tation'), default=OpRef(name='init.fields.1.default'), default_factory=None, init=True, override=False, field_"
|
|
1844
|
-
"type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='options', annotati"
|
|
1845
|
-
"on=OpRef(name='init.fields.2.annotation'), default=OpRef(name='init.fields.2.default'), default_factory=None, "
|
|
1846
|
-
"init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPl"
|
|
1847
|
-
"an.Field(name='marshaler', annotation=OpRef(name='init.fields.3.annotation'), default=OpRef(name='init.fields."
|
|
1848
|
-
"3.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, vali"
|
|
1849
|
-
"date=None, check_type=OpRef(name='init.fields.3.check_type')), InitPlan.Field(name='marshaler_factory', annota"
|
|
1850
|
-
"tion=OpRef(name='init.fields.4.annotation'), default=OpRef(name='init.fields.4.default'), default_factory=None"
|
|
1851
|
-
", init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), Init"
|
|
1852
|
-
"Plan.Field(name='unmarshaler', annotation=OpRef(name='init.fields.5.annotation'), default=OpRef(name='init.fie"
|
|
1853
|
-
"lds.5.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, "
|
|
1854
|
-
"validate=None, check_type=OpRef(name='init.fields.5.check_type')), InitPlan.Field(name='unmarshaler_factory', "
|
|
1855
|
-
"annotation=OpRef(name='init.fields.6.annotation'), default=OpRef(name='init.fields.6.default'), default_factor"
|
|
1856
|
-
"y=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)"
|
|
1857
|
-
"), self_param='self', std_params=(), kw_only_params=('name', 'alts', 'options', 'marshaler', 'marshaler_factor"
|
|
1858
|
-
"y', 'unmarshaler', 'unmarshaler_factory'), frozen=True, slots=False, post_init_params=None, init_fns=(), valid"
|
|
1859
|
-
"ate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='name', kw_only=True, fn=None), ReprPlan.Field(name='alts', "
|
|
1860
|
-
"kw_only=True, fn=None), ReprPlan.Field(name='options', kw_only=True, fn=None), ReprPlan.Field(name='marshaler'"
|
|
1861
|
-
", kw_only=True, fn=None), ReprPlan.Field(name='marshaler_factory', kw_only=True, fn=None), ReprPlan.Field(name"
|
|
1862
|
-
"='unmarshaler', kw_only=True, fn=None), ReprPlan.Field(name='unmarshaler_factory', kw_only=True, fn=None)), id"
|
|
1863
|
-
"=False, terse=False, default_fn=None)))"
|
|
1864
|
-
),
|
|
1865
|
-
plan_repr_sha1='bad93a176f34458732d6dbbd403a7930767b3796',
|
|
1866
|
-
op_ref_idents=(
|
|
1867
|
-
'__dataclass__init__fields__0__annotation',
|
|
1868
|
-
'__dataclass__init__fields__0__default',
|
|
1869
|
-
'__dataclass__init__fields__1__annotation',
|
|
1870
|
-
'__dataclass__init__fields__1__default',
|
|
1871
|
-
'__dataclass__init__fields__2__annotation',
|
|
1872
|
-
'__dataclass__init__fields__2__default',
|
|
1873
|
-
'__dataclass__init__fields__3__annotation',
|
|
1874
|
-
'__dataclass__init__fields__3__check_type',
|
|
1875
|
-
'__dataclass__init__fields__3__default',
|
|
1876
|
-
'__dataclass__init__fields__4__annotation',
|
|
1877
|
-
'__dataclass__init__fields__4__default',
|
|
1878
|
-
'__dataclass__init__fields__5__annotation',
|
|
1879
|
-
'__dataclass__init__fields__5__check_type',
|
|
1880
|
-
'__dataclass__init__fields__5__default',
|
|
1881
|
-
'__dataclass__init__fields__6__annotation',
|
|
1882
|
-
'__dataclass__init__fields__6__default',
|
|
1883
|
-
),
|
|
1884
|
-
cls_names=(
|
|
1885
|
-
('ommlds.backends.tavily.protocol', 'FieldMetadata'),
|
|
1886
|
-
),
|
|
1887
|
-
)
|
|
1888
|
-
def _process_dataclass__bad93a176f34458732d6dbbd403a7930767b3796():
|
|
1889
|
-
def _process_dataclass(
|
|
1890
|
-
*,
|
|
1891
|
-
__dataclass__cls,
|
|
1892
|
-
__dataclass__init__fields__0__annotation,
|
|
1893
|
-
__dataclass__init__fields__0__default,
|
|
1894
|
-
__dataclass__init__fields__1__annotation,
|
|
1895
|
-
__dataclass__init__fields__1__default,
|
|
1896
|
-
__dataclass__init__fields__2__annotation,
|
|
1897
|
-
__dataclass__init__fields__2__default,
|
|
1898
|
-
__dataclass__init__fields__3__annotation,
|
|
1899
|
-
__dataclass__init__fields__3__check_type,
|
|
1900
|
-
__dataclass__init__fields__3__default,
|
|
1901
|
-
__dataclass__init__fields__4__annotation,
|
|
1902
|
-
__dataclass__init__fields__4__default,
|
|
1903
|
-
__dataclass__init__fields__5__annotation,
|
|
1904
|
-
__dataclass__init__fields__5__check_type,
|
|
1905
|
-
__dataclass__init__fields__5__default,
|
|
1906
|
-
__dataclass__init__fields__6__annotation,
|
|
1907
|
-
__dataclass__init__fields__6__default,
|
|
1908
|
-
__dataclass__FieldFnValidationError, # noqa
|
|
1909
|
-
__dataclass__FieldTypeValidationError, # noqa
|
|
1910
|
-
__dataclass__FnValidationError, # noqa
|
|
1911
|
-
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
1912
|
-
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
1913
|
-
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
1914
|
-
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
1915
|
-
__dataclass__None=None, # noqa
|
|
1916
|
-
__dataclass__TypeError=TypeError, # noqa
|
|
1917
|
-
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
1918
|
-
__dataclass__isinstance=isinstance, # noqa
|
|
1919
|
-
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
1920
|
-
__dataclass__property=property, # noqa
|
|
1921
|
-
):
|
|
1922
|
-
def __copy__(self):
|
|
1923
|
-
if self.__class__ is not __dataclass__cls:
|
|
1924
|
-
raise TypeError(self)
|
|
1925
|
-
return __dataclass__cls( # noqa
|
|
1926
|
-
name=self.name,
|
|
1927
|
-
alts=self.alts,
|
|
1928
|
-
options=self.options,
|
|
1929
|
-
marshaler=self.marshaler,
|
|
1930
|
-
marshaler_factory=self.marshaler_factory,
|
|
1931
|
-
unmarshaler=self.unmarshaler,
|
|
1932
|
-
unmarshaler_factory=self.unmarshaler_factory,
|
|
1933
|
-
)
|
|
1934
|
-
|
|
1935
|
-
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
1936
|
-
if '__copy__' in __dataclass__cls.__dict__:
|
|
1937
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
1938
|
-
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
1939
|
-
|
|
1940
|
-
def __eq__(self, other):
|
|
1941
|
-
if self is other:
|
|
1942
|
-
return True
|
|
1943
|
-
if self.__class__ is not other.__class__:
|
|
1944
|
-
return NotImplemented
|
|
1945
|
-
return (
|
|
1946
|
-
self.name == other.name and
|
|
1947
|
-
self.alts == other.alts and
|
|
1948
|
-
self.options == other.options and
|
|
1949
|
-
self.marshaler == other.marshaler and
|
|
1950
|
-
self.marshaler_factory == other.marshaler_factory and
|
|
1951
|
-
self.unmarshaler == other.unmarshaler and
|
|
1952
|
-
self.unmarshaler_factory == other.unmarshaler_factory
|
|
1953
|
-
)
|
|
1954
|
-
|
|
1955
|
-
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
1956
|
-
if '__eq__' in __dataclass__cls.__dict__:
|
|
1957
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
1958
|
-
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1959
|
-
|
|
1960
|
-
__dataclass___setattr_frozen_fields = {
|
|
1961
|
-
'name',
|
|
1962
|
-
'alts',
|
|
1963
|
-
'options',
|
|
1964
|
-
'marshaler',
|
|
1965
|
-
'marshaler_factory',
|
|
1966
|
-
'unmarshaler',
|
|
1967
|
-
'unmarshaler_factory',
|
|
1968
|
-
}
|
|
1969
|
-
|
|
1970
|
-
def __setattr__(self, name, value):
|
|
1971
|
-
if (
|
|
1972
|
-
type(self) is __dataclass__cls
|
|
1973
|
-
or name in __dataclass___setattr_frozen_fields
|
|
1974
|
-
):
|
|
1975
|
-
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
1976
|
-
super(__dataclass__cls, self).__setattr__(name, value)
|
|
1977
|
-
|
|
1978
|
-
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
1979
|
-
if '__setattr__' in __dataclass__cls.__dict__:
|
|
1980
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
1981
|
-
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1982
|
-
|
|
1983
|
-
__dataclass___delattr_frozen_fields = {
|
|
1984
|
-
'name',
|
|
1985
|
-
'alts',
|
|
1986
|
-
'options',
|
|
1987
|
-
'marshaler',
|
|
1988
|
-
'marshaler_factory',
|
|
1989
|
-
'unmarshaler',
|
|
1990
|
-
'unmarshaler_factory',
|
|
1991
|
-
}
|
|
1992
|
-
|
|
1993
|
-
def __delattr__(self, name):
|
|
1994
|
-
if (
|
|
1995
|
-
type(self) is __dataclass__cls
|
|
1996
|
-
or name in __dataclass___delattr_frozen_fields
|
|
1997
|
-
):
|
|
1998
|
-
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
1999
|
-
super(__dataclass__cls, self).__delattr__(name)
|
|
2000
|
-
|
|
2001
|
-
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
2002
|
-
if '__delattr__' in __dataclass__cls.__dict__:
|
|
2003
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
2004
|
-
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
2005
|
-
|
|
2006
|
-
def __hash__(self):
|
|
2007
|
-
return hash((
|
|
2008
|
-
self.name,
|
|
2009
|
-
self.alts,
|
|
2010
|
-
self.options,
|
|
2011
|
-
self.marshaler,
|
|
2012
|
-
self.marshaler_factory,
|
|
2013
|
-
self.unmarshaler,
|
|
2014
|
-
self.unmarshaler_factory,
|
|
1156
|
+
self.url,
|
|
1157
|
+
self.raw_content,
|
|
1158
|
+
self.images,
|
|
1159
|
+
self.favicon,
|
|
2015
1160
|
))
|
|
2016
1161
|
|
|
2017
1162
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -2020,35 +1165,15 @@ def _process_dataclass__bad93a176f34458732d6dbbd403a7930767b3796():
|
|
|
2020
1165
|
def __init__(
|
|
2021
1166
|
self,
|
|
2022
1167
|
*,
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
marshaler_factory: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
2028
|
-
unmarshaler: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
2029
|
-
unmarshaler_factory: __dataclass__init__fields__6__annotation = __dataclass__init__fields__6__default,
|
|
1168
|
+
url: __dataclass__init__fields__0__annotation,
|
|
1169
|
+
raw_content: __dataclass__init__fields__1__annotation,
|
|
1170
|
+
images: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
1171
|
+
favicon: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
2030
1172
|
) -> __dataclass__None:
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
field='marshaler',
|
|
2036
|
-
value=marshaler,
|
|
2037
|
-
)
|
|
2038
|
-
if not __dataclass__isinstance(unmarshaler, __dataclass__init__fields__5__check_type):
|
|
2039
|
-
raise __dataclass__FieldTypeValidationError(
|
|
2040
|
-
obj=self,
|
|
2041
|
-
type=__dataclass__init__fields__5__check_type,
|
|
2042
|
-
field='unmarshaler',
|
|
2043
|
-
value=unmarshaler,
|
|
2044
|
-
)
|
|
2045
|
-
__dataclass__object_setattr(self, 'name', name)
|
|
2046
|
-
__dataclass__object_setattr(self, 'alts', alts)
|
|
2047
|
-
__dataclass__object_setattr(self, 'options', options)
|
|
2048
|
-
__dataclass__object_setattr(self, 'marshaler', marshaler)
|
|
2049
|
-
__dataclass__object_setattr(self, 'marshaler_factory', marshaler_factory)
|
|
2050
|
-
__dataclass__object_setattr(self, 'unmarshaler', unmarshaler)
|
|
2051
|
-
__dataclass__object_setattr(self, 'unmarshaler_factory', unmarshaler_factory)
|
|
1173
|
+
__dataclass__object_setattr(self, 'url', url)
|
|
1174
|
+
__dataclass__object_setattr(self, 'raw_content', raw_content)
|
|
1175
|
+
__dataclass__object_setattr(self, 'images', images)
|
|
1176
|
+
__dataclass__object_setattr(self, 'favicon', favicon)
|
|
2052
1177
|
|
|
2053
1178
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2054
1179
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -2058,13 +1183,10 @@ def _process_dataclass__bad93a176f34458732d6dbbd403a7930767b3796():
|
|
|
2058
1183
|
@__dataclass___recursive_repr()
|
|
2059
1184
|
def __repr__(self):
|
|
2060
1185
|
parts = []
|
|
2061
|
-
parts.append(f"
|
|
2062
|
-
parts.append(f"
|
|
2063
|
-
parts.append(f"
|
|
2064
|
-
parts.append(f"
|
|
2065
|
-
parts.append(f"marshaler_factory={self.marshaler_factory!r}")
|
|
2066
|
-
parts.append(f"unmarshaler={self.unmarshaler!r}")
|
|
2067
|
-
parts.append(f"unmarshaler_factory={self.unmarshaler_factory!r}")
|
|
1186
|
+
parts.append(f"url={self.url!r}")
|
|
1187
|
+
parts.append(f"raw_content={self.raw_content!r}")
|
|
1188
|
+
parts.append(f"images={self.images!r}")
|
|
1189
|
+
parts.append(f"favicon={self.favicon!r}")
|
|
2068
1190
|
return (
|
|
2069
1191
|
f"{self.__class__.__qualname__}("
|
|
2070
1192
|
f"{', '.join(parts)}"
|
|
@@ -2610,298 +1732,3 @@ def _process_dataclass__c306872e8ff160b080e380e285ae8e74db96cc63():
|
|
|
2610
1732
|
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
2611
1733
|
|
|
2612
1734
|
return _process_dataclass
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
@_register(
|
|
2616
|
-
plan_repr=(
|
|
2617
|
-
"Plans(tup=(CopyPlan(fields=('lst',)), EqPlan(fields=('lst',)), FrozenPlan(fields=('lst',), allow_dynamic_dunde"
|
|
2618
|
-
"r_attrs=False), HashPlan(action='add', fields=('lst',), cache=False), InitPlan(fields=(InitPlan.Field(name='ls"
|
|
2619
|
-
"t', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, override"
|
|
2620
|
-
"=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self', std_"
|
|
2621
|
-
"params=('lst',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(OpRef(name='ini"
|
|
2622
|
-
"t.init_fns.0'), OpRef(name='init.init_fns.1'), OpRef(name='init.init_fns.2')), validate_fns=()), ReprPlan(fiel"
|
|
2623
|
-
"ds=(ReprPlan.Field(name='lst', kw_only=False, fn=None),), id=False, terse=False, default_fn=None)))"
|
|
2624
|
-
),
|
|
2625
|
-
plan_repr_sha1='d79af82ecd003199ceaa4594c2592f2dbb8ba386',
|
|
2626
|
-
op_ref_idents=(
|
|
2627
|
-
'__dataclass__init__fields__0__annotation',
|
|
2628
|
-
'__dataclass__init__init_fns__0',
|
|
2629
|
-
'__dataclass__init__init_fns__1',
|
|
2630
|
-
'__dataclass__init__init_fns__2',
|
|
2631
|
-
),
|
|
2632
|
-
cls_names=(
|
|
2633
|
-
('ommlds.backends.tavily.protocol', 'FieldInfos'),
|
|
2634
|
-
),
|
|
2635
|
-
)
|
|
2636
|
-
def _process_dataclass__d79af82ecd003199ceaa4594c2592f2dbb8ba386():
|
|
2637
|
-
def _process_dataclass(
|
|
2638
|
-
*,
|
|
2639
|
-
__dataclass__cls,
|
|
2640
|
-
__dataclass__init__fields__0__annotation,
|
|
2641
|
-
__dataclass__init__init_fns__0,
|
|
2642
|
-
__dataclass__init__init_fns__1,
|
|
2643
|
-
__dataclass__init__init_fns__2,
|
|
2644
|
-
__dataclass__FieldFnValidationError, # noqa
|
|
2645
|
-
__dataclass__FieldTypeValidationError, # noqa
|
|
2646
|
-
__dataclass__FnValidationError, # noqa
|
|
2647
|
-
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
2648
|
-
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
2649
|
-
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
2650
|
-
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
2651
|
-
__dataclass__None=None, # noqa
|
|
2652
|
-
__dataclass__TypeError=TypeError, # noqa
|
|
2653
|
-
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
2654
|
-
__dataclass__isinstance=isinstance, # noqa
|
|
2655
|
-
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
2656
|
-
__dataclass__property=property, # noqa
|
|
2657
|
-
):
|
|
2658
|
-
def __copy__(self):
|
|
2659
|
-
if self.__class__ is not __dataclass__cls:
|
|
2660
|
-
raise TypeError(self)
|
|
2661
|
-
return __dataclass__cls( # noqa
|
|
2662
|
-
lst=self.lst,
|
|
2663
|
-
)
|
|
2664
|
-
|
|
2665
|
-
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
2666
|
-
if '__copy__' in __dataclass__cls.__dict__:
|
|
2667
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
2668
|
-
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
2669
|
-
|
|
2670
|
-
def __eq__(self, other):
|
|
2671
|
-
if self is other:
|
|
2672
|
-
return True
|
|
2673
|
-
if self.__class__ is not other.__class__:
|
|
2674
|
-
return NotImplemented
|
|
2675
|
-
return (
|
|
2676
|
-
self.lst == other.lst
|
|
2677
|
-
)
|
|
2678
|
-
|
|
2679
|
-
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
2680
|
-
if '__eq__' in __dataclass__cls.__dict__:
|
|
2681
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
2682
|
-
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2683
|
-
|
|
2684
|
-
__dataclass___setattr_frozen_fields = {
|
|
2685
|
-
'lst',
|
|
2686
|
-
}
|
|
2687
|
-
|
|
2688
|
-
def __setattr__(self, name, value):
|
|
2689
|
-
if (
|
|
2690
|
-
type(self) is __dataclass__cls
|
|
2691
|
-
or name in __dataclass___setattr_frozen_fields
|
|
2692
|
-
):
|
|
2693
|
-
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
2694
|
-
super(__dataclass__cls, self).__setattr__(name, value)
|
|
2695
|
-
|
|
2696
|
-
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
2697
|
-
if '__setattr__' in __dataclass__cls.__dict__:
|
|
2698
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
2699
|
-
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2700
|
-
|
|
2701
|
-
__dataclass___delattr_frozen_fields = {
|
|
2702
|
-
'lst',
|
|
2703
|
-
}
|
|
2704
|
-
|
|
2705
|
-
def __delattr__(self, name):
|
|
2706
|
-
if (
|
|
2707
|
-
type(self) is __dataclass__cls
|
|
2708
|
-
or name in __dataclass___delattr_frozen_fields
|
|
2709
|
-
):
|
|
2710
|
-
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
2711
|
-
super(__dataclass__cls, self).__delattr__(name)
|
|
2712
|
-
|
|
2713
|
-
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
2714
|
-
if '__delattr__' in __dataclass__cls.__dict__:
|
|
2715
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
2716
|
-
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
2717
|
-
|
|
2718
|
-
def __hash__(self):
|
|
2719
|
-
return hash((
|
|
2720
|
-
self.lst,
|
|
2721
|
-
))
|
|
2722
|
-
|
|
2723
|
-
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
2724
|
-
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
2725
|
-
|
|
2726
|
-
def __init__(
|
|
2727
|
-
self,
|
|
2728
|
-
lst: __dataclass__init__fields__0__annotation,
|
|
2729
|
-
) -> __dataclass__None:
|
|
2730
|
-
__dataclass__object_setattr(self, 'lst', lst)
|
|
2731
|
-
__dataclass__init__init_fns__0(self)
|
|
2732
|
-
__dataclass__init__init_fns__1(self)
|
|
2733
|
-
__dataclass__init__init_fns__2(self)
|
|
2734
|
-
|
|
2735
|
-
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2736
|
-
if '__init__' in __dataclass__cls.__dict__:
|
|
2737
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
2738
|
-
setattr(__dataclass__cls, '__init__', __init__)
|
|
2739
|
-
|
|
2740
|
-
@__dataclass___recursive_repr()
|
|
2741
|
-
def __repr__(self):
|
|
2742
|
-
parts = []
|
|
2743
|
-
parts.append(f"lst={self.lst!r}")
|
|
2744
|
-
return (
|
|
2745
|
-
f"{self.__class__.__qualname__}("
|
|
2746
|
-
f"{', '.join(parts)}"
|
|
2747
|
-
f")"
|
|
2748
|
-
)
|
|
2749
|
-
|
|
2750
|
-
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
2751
|
-
if '__repr__' in __dataclass__cls.__dict__:
|
|
2752
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
2753
|
-
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
2754
|
-
|
|
2755
|
-
return _process_dataclass
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
@_register(
|
|
2759
|
-
plan_repr=(
|
|
2760
|
-
"Plans(tup=(CopyPlan(fields=('unknown', 'source')), EqPlan(fields=('unknown', 'source')), FrozenPlan(fields=('u"
|
|
2761
|
-
"nknown', 'source'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('unknown', 'source'), ca"
|
|
2762
|
-
"che=False), InitPlan(fields=(InitPlan.Field(name='unknown', annotation=OpRef(name='init.fields.0.annotation'),"
|
|
2763
|
-
" default=OpRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=Fiel"
|
|
2764
|
-
"dType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='source', annotation=OpRef(n"
|
|
2765
|
-
"ame='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_factory=None, init=True,"
|
|
2766
|
-
" override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='sel"
|
|
2767
|
-
"f', std_params=(), kw_only_params=('unknown', 'source'), frozen=True, slots=False, post_init_params=None, init"
|
|
2768
|
-
"_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='unknown', kw_only=True, fn=None), ReprPlan.Fi"
|
|
2769
|
-
"eld(name='source', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
2770
|
-
),
|
|
2771
|
-
plan_repr_sha1='ffbfe43830279fbce3d0d2196bd9c1e581bc796f',
|
|
2772
|
-
op_ref_idents=(
|
|
2773
|
-
'__dataclass__init__fields__0__annotation',
|
|
2774
|
-
'__dataclass__init__fields__0__default',
|
|
2775
|
-
'__dataclass__init__fields__1__annotation',
|
|
2776
|
-
'__dataclass__init__fields__1__default',
|
|
2777
|
-
),
|
|
2778
|
-
cls_names=(
|
|
2779
|
-
('ommlds.backends.tavily.protocol', 'ObjectSpecials'),
|
|
2780
|
-
),
|
|
2781
|
-
)
|
|
2782
|
-
def _process_dataclass__ffbfe43830279fbce3d0d2196bd9c1e581bc796f():
|
|
2783
|
-
def _process_dataclass(
|
|
2784
|
-
*,
|
|
2785
|
-
__dataclass__cls,
|
|
2786
|
-
__dataclass__init__fields__0__annotation,
|
|
2787
|
-
__dataclass__init__fields__0__default,
|
|
2788
|
-
__dataclass__init__fields__1__annotation,
|
|
2789
|
-
__dataclass__init__fields__1__default,
|
|
2790
|
-
__dataclass__FieldFnValidationError, # noqa
|
|
2791
|
-
__dataclass__FieldTypeValidationError, # noqa
|
|
2792
|
-
__dataclass__FnValidationError, # noqa
|
|
2793
|
-
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
2794
|
-
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
2795
|
-
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
2796
|
-
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
2797
|
-
__dataclass__None=None, # noqa
|
|
2798
|
-
__dataclass__TypeError=TypeError, # noqa
|
|
2799
|
-
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
2800
|
-
__dataclass__isinstance=isinstance, # noqa
|
|
2801
|
-
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
2802
|
-
__dataclass__property=property, # noqa
|
|
2803
|
-
):
|
|
2804
|
-
def __copy__(self):
|
|
2805
|
-
if self.__class__ is not __dataclass__cls:
|
|
2806
|
-
raise TypeError(self)
|
|
2807
|
-
return __dataclass__cls( # noqa
|
|
2808
|
-
unknown=self.unknown,
|
|
2809
|
-
source=self.source,
|
|
2810
|
-
)
|
|
2811
|
-
|
|
2812
|
-
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
2813
|
-
if '__copy__' in __dataclass__cls.__dict__:
|
|
2814
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
2815
|
-
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
2816
|
-
|
|
2817
|
-
def __eq__(self, other):
|
|
2818
|
-
if self is other:
|
|
2819
|
-
return True
|
|
2820
|
-
if self.__class__ is not other.__class__:
|
|
2821
|
-
return NotImplemented
|
|
2822
|
-
return (
|
|
2823
|
-
self.unknown == other.unknown and
|
|
2824
|
-
self.source == other.source
|
|
2825
|
-
)
|
|
2826
|
-
|
|
2827
|
-
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
2828
|
-
if '__eq__' in __dataclass__cls.__dict__:
|
|
2829
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
2830
|
-
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2831
|
-
|
|
2832
|
-
__dataclass___setattr_frozen_fields = {
|
|
2833
|
-
'unknown',
|
|
2834
|
-
'source',
|
|
2835
|
-
}
|
|
2836
|
-
|
|
2837
|
-
def __setattr__(self, name, value):
|
|
2838
|
-
if (
|
|
2839
|
-
type(self) is __dataclass__cls
|
|
2840
|
-
or name in __dataclass___setattr_frozen_fields
|
|
2841
|
-
):
|
|
2842
|
-
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
2843
|
-
super(__dataclass__cls, self).__setattr__(name, value)
|
|
2844
|
-
|
|
2845
|
-
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
2846
|
-
if '__setattr__' in __dataclass__cls.__dict__:
|
|
2847
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
2848
|
-
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2849
|
-
|
|
2850
|
-
__dataclass___delattr_frozen_fields = {
|
|
2851
|
-
'unknown',
|
|
2852
|
-
'source',
|
|
2853
|
-
}
|
|
2854
|
-
|
|
2855
|
-
def __delattr__(self, name):
|
|
2856
|
-
if (
|
|
2857
|
-
type(self) is __dataclass__cls
|
|
2858
|
-
or name in __dataclass___delattr_frozen_fields
|
|
2859
|
-
):
|
|
2860
|
-
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
2861
|
-
super(__dataclass__cls, self).__delattr__(name)
|
|
2862
|
-
|
|
2863
|
-
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
2864
|
-
if '__delattr__' in __dataclass__cls.__dict__:
|
|
2865
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
2866
|
-
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
2867
|
-
|
|
2868
|
-
def __hash__(self):
|
|
2869
|
-
return hash((
|
|
2870
|
-
self.unknown,
|
|
2871
|
-
self.source,
|
|
2872
|
-
))
|
|
2873
|
-
|
|
2874
|
-
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
2875
|
-
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
2876
|
-
|
|
2877
|
-
def __init__(
|
|
2878
|
-
self,
|
|
2879
|
-
*,
|
|
2880
|
-
unknown: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
2881
|
-
source: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
2882
|
-
) -> __dataclass__None:
|
|
2883
|
-
__dataclass__object_setattr(self, 'unknown', unknown)
|
|
2884
|
-
__dataclass__object_setattr(self, 'source', source)
|
|
2885
|
-
|
|
2886
|
-
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2887
|
-
if '__init__' in __dataclass__cls.__dict__:
|
|
2888
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
2889
|
-
setattr(__dataclass__cls, '__init__', __init__)
|
|
2890
|
-
|
|
2891
|
-
@__dataclass___recursive_repr()
|
|
2892
|
-
def __repr__(self):
|
|
2893
|
-
parts = []
|
|
2894
|
-
parts.append(f"unknown={self.unknown!r}")
|
|
2895
|
-
parts.append(f"source={self.source!r}")
|
|
2896
|
-
return (
|
|
2897
|
-
f"{self.__class__.__qualname__}("
|
|
2898
|
-
f"{', '.join(parts)}"
|
|
2899
|
-
f")"
|
|
2900
|
-
)
|
|
2901
|
-
|
|
2902
|
-
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
2903
|
-
if '__repr__' in __dataclass__cls.__dict__:
|
|
2904
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
2905
|
-
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
2906
|
-
|
|
2907
|
-
return _process_dataclass
|