Spaces:
Sleeping
Sleeping
File size: 261 Bytes
0f43f8a |
1 2 3 4 5 6 7 8 9 10 11 12 |
from dataclasses import dataclass
@dataclass
class Account:
id: int
user_id: int
balance: float
def __init__(self, id: int, user_id: int, balance: float = 0.0):
self.id = id
self.user_id = user_id
self.balance = balance |