From 4fee91ad482ed99c69eaabd234c5e1a5a096bf12 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Thu, 19 Mar 2020 10:43:20 -0400 Subject: [PATCH] data.Account: Use multi-arg is_under in is_real_asset. --- conservancy_beancount/data.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/conservancy_beancount/data.py b/conservancy_beancount/data.py index a62209d..c9b6a52 100644 --- a/conservancy_beancount/data.py +++ b/conservancy_beancount/data.py @@ -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]: