mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-05 02:24:21 -05:00
* streamable: Merge `strictdataclass` into `Streamable` class * tests: Test not supported streamable types * streamable: Reorder decorators * streamable: Simplify streamable decorator and force correct usage/syntax * streamable: Just move some stuff around in the file * streamable: Improve syntax error messages * mypy: Drop `type_checking.py` and `test_type_checking.py` from exclusion * streamable: Use cached fields instead of `__annotations__` This is now possible after merging `__post_init__` into `Streamable` * Introduce `DefinitionError` as `StreamableError` * `/t` -> ` `
17 lines
576 B
Python
17 lines
576 B
Python
from dataclasses import dataclass
|
|
|
|
from chia.util.streamable import Streamable, streamable
|
|
|
|
|
|
@streamable
|
|
@dataclass(frozen=True)
|
|
class BackupInitialized(Streamable):
|
|
"""
|
|
Stores user decision regarding import of backup info
|
|
"""
|
|
|
|
user_initialized: bool # Stores if user made a selection in UI. (Skip vs Import backup)
|
|
user_skipped: bool # Stores if user decided to skip import of backup info
|
|
backup_info_imported: bool # Stores if backup info has been imported
|
|
new_wallet: bool # Stores if this wallet is newly created / not restored from backup
|