Changeset - 96b39a877816
[Not reviewed]
0 1 0
Brett Smith - 3 years ago 2021-02-26 19:43:22
brettcsmith@brettcsmith.org
beancount_types: OptionsMap is a dict.

While mutating it is *probably* not a good idea, I've gotten to a point
where I need to do that (to update a value), so just admit the truth here.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
conservancy_beancount/beancount_types.py
Show inline comments
...
 
@@ -10,12 +10,13 @@ import datetime
 

	
 
import beancount.core.data as bc_data
 

	
 
from typing import (
 
    TYPE_CHECKING,
 
    Any,
 
    Dict,
 
    FrozenSet,
 
    Iterable,
 
    List,
 
    Mapping,
 
    NamedTuple,
 
    Optional,
...
 
@@ -71,8 +72,8 @@ class Transaction(Directive):
 
ALL_DIRECTIVES: FrozenSet[Type[Directive]] = frozenset([
 
    Transaction,
 
])
 

	
 
Entries = List[Directive]
 
Errors = List[Union[Error, 'errormod.Error']]
 
OptionsMap = Mapping[str, Any]
 
OptionsMap = Dict[str, Any]
 
LoadResult = Tuple[Entries, Errors, OptionsMap]
0 comments (0 inline, 0 general)