From: Jacob Lifshay Date: Tue, 8 Sep 2020 02:05:34 +0000 (-0700) Subject: change Payment.from_toml to private X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=630fda87b4e3d7a7a66030b0328c03028df42dfc;p=utils.git change Payment.from_toml to private --- 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