From 96b39a877816adea8ba302c3156dd13eb4529d70 Mon Sep 17 00:00:00 2001 From: Brett Smith <brettcsmith@brettcsmith.org> Date: Fri, 26 Feb 2021 14:43:22 -0500 Subject: [PATCH] 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. --- conservancy_beancount/beancount_types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conservancy_beancount/beancount_types.py b/conservancy_beancount/beancount_types.py index 41c1df9..a954c4f 100644 --- a/conservancy_beancount/beancount_types.py +++ b/conservancy_beancount/beancount_types.py @@ -13,6 +13,7 @@ import beancount.core.data as bc_data from typing import ( TYPE_CHECKING, Any, + Dict, FrozenSet, Iterable, List, @@ -74,5 +75,5 @@ ALL_DIRECTIVES: FrozenSet[Type[Directive]] = frozenset([ Entries = List[Directive] Errors = List[Union[Error, 'errormod.Error']] -OptionsMap = Mapping[str, Any] +OptionsMap = Dict[str, Any] LoadResult = Tuple[Entries, Errors, OptionsMap]