projects
/
utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2ecdb8f
)
change Payment.from_toml to private
author
Jacob Lifshay
<programmerjake@gmail.com>
Tue, 8 Sep 2020 02:05:34 +0000
(19:05 -0700)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Tue, 8 Sep 2020 02:05:34 +0000
(19:05 -0700)
src/budget_sync/budget_graph.py
patch
|
blob
|
history
diff --git
a/src/budget_sync/budget_graph.py
b/src/budget_sync/budget_graph.py
index e713935e4b04f48bdca907111a487ced89fc26cc..dd59fd4ac2222d9def9556777ac2f55b1267a4b2 100644
(file)
--- a/
src/budget_sync/budget_graph.py
+++ b/
src/budget_sync/budget_graph.py
@@
-109,7
+109,7
@@
class Payment:
return PayeeState.NotYetSubmitted
@staticmethod
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")
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}")
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
return retval
@property