change Payment.from_toml to private
[utils.git] / src / budget_sync / budget_graph.py
index e713935e4b04f48bdca907111a487ced89fc26cc..dd59fd4ac2222d9def9556777ac2f55b1267a4b2 100644 (file)
@@ -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