From 630fda87b4e3d7a7a66030b0328c03028df42dfc Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Mon, 7 Sep 2020 19:05:34 -0700 Subject: [PATCH] change Payment.from_toml to private --- src/budget_sync/budget_graph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/budget_sync/budget_graph.py b/src/budget_sync/budget_graph.py index e713935..dd59fd4 100644 --- a/src/budget_sync/budget_graph.py +++ b/src/budget_sync/budget_graph.py @@ -109,7 +109,7 @@ class Payment: return PayeeState.NotYetSubmitted @staticmethod - def from_toml(node: "Node", payee_key: str, toml_value: Any): + def _from_toml(node: "Node", payee_key: str, toml_value: Any) -> "Payment": paid = None submitted = None known_keys = ("paid", "submitted", "amount") @@ -222,7 +222,7 @@ class Node: if not isinstance(key, str): raise BudgetGraphPayeesParseError( self.bug.id, f"key is not a string: {key!r}") - retval[key] = Payment.from_toml(self, key, value) + retval[key] = Payment._from_toml(self, key, value) return retval @property -- 2.30.2