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.
This commit is contained in:
parent
d3415a8721
commit
1383dabf3b
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue