Changeset - 1383dabf3ba8
[Not reviewed]
0 1 0
Brett Smith - 4 years ago 2020-04-27 20:44:39
brettcsmith@brettcsmith.org
beancount_types: Make Error.source a Mapping rather than a Dict.

The Beancount code just needs a mapping, and this lets us use
Metadata or PostingMeta objects for Error sources.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
conservancy_beancount/beancount_types.py
Show inline comments
...
 
@@ -49,7 +49,7 @@ class Directive(NamedTuple):
 

	
 

	
 
class Error(NamedTuple):
 
    source: Optional[bc_data.Meta]
 
    source: Optional[Mapping[MetaKey, MetaValue]]
 
    message: str
 
    entry: Optional[Directive]
 

	
0 comments (0 inline, 0 general)