File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -455,15 +455,15 @@ def _report_to_json(report: BaseReport) -> Dict[str, Any]:
455
455
def serialize_repr_entry (
456
456
entry : Union [ReprEntry , ReprEntryNative ]
457
457
) -> Dict [str , Any ]:
458
- data = attr .asdict (entry )
458
+ data = attr .asdict (entry ) # type:ignore[arg-type]
459
459
for key , value in data .items ():
460
460
if hasattr (value , "__dict__" ):
461
461
data [key ] = attr .asdict (value )
462
462
entry_data = {"type" : type (entry ).__name__ , "data" : data }
463
463
return entry_data
464
464
465
465
def serialize_repr_traceback (reprtraceback : ReprTraceback ) -> Dict [str , Any ]:
466
- result = attr .asdict (reprtraceback )
466
+ result = attr .asdict (reprtraceback ) # type:ignore[arg-type]
467
467
result ["reprentries" ] = [
468
468
serialize_repr_entry (x ) for x in reprtraceback .reprentries
469
469
]
@@ -473,7 +473,7 @@ def serialize_repr_crash(
473
473
reprcrash : Optional [ReprFileLocation ],
474
474
) -> Optional [Dict [str , Any ]]:
475
475
if reprcrash is not None :
476
- return attr .asdict (reprcrash )
476
+ return attr .asdict (reprcrash ) # type:ignore[arg-type]
477
477
else :
478
478
return None
479
479
You can’t perform that action at this time.
0 commit comments