Fix password preview (#2190)

This commit is contained in:
codefiles 2023-10-25 03:27:18 -04:00 committed by GitHub
parent 474861c155
commit 2831c97338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ class FormattedOutput:
raise ValueError('Unsupported formatting call')
elif hasattr(o, 'table_data'):
return o.table_data()
elif hasattr(o, 'json'):
return o.json()
elif is_dataclass(o):
return asdict(o)
else: