data.Account: Use multi-arg is_under in is_real_asset.

This commit is contained in:
Brett Smith 2020-03-19 10:43:20 -04:00
parent 7cd569be7b
commit 4fee91ad48

View file

@ -41,8 +41,7 @@ class Account(str):
def is_real_asset(self) -> bool:
return bool(
self.is_under('Assets:')
and not self.is_under('Assets:PrepaidExpenses')
and not self.is_under('Assets:PrepaidVacation')
and not self.is_under('Assets:PrepaidExpenses', 'Assets:PrepaidVacation')
)
def is_under(self, *acct_seq: str) -> Optional[str]: