diff options
Diffstat (limited to 'python/report_ops')
| -rw-r--r-- | python/report_ops/custodians.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/python/report_ops/custodians.py b/python/report_ops/custodians.py index 102f53f3..76d01d6b 100644 --- a/python/report_ops/custodians.py +++ b/python/report_ops/custodians.py @@ -13,16 +13,13 @@ from dataclasses import dataclass @dataclass class Custodian: date: datetime.date - account: str + account: ClassVar[str] upload_fun: ClassVar def __init_subclass__(cls, account, upload_fun=None): cls.account = account cls.upload_fun = staticmethod(upload_fun) - def __init__(self, date): - self.date = date - def upload_to_custodian(self, upload): self.upload_fun(upload, account=self.account, trade_date=self.date) |
