books: Loader.load_none() returns default options_map.

This way it's still safe to assume all the expected keys are there.
This commit is contained in:
Brett Smith 2020-07-16 15:37:11 -04:00
parent 3f0b201d16
commit 97d813972b

View file

@ -18,7 +18,8 @@ import datetime
from pathlib import Path
from beancount import loader as bc_loader
import beancount.loader as bc_loader
import beancount.parser.options as bc_options
from typing import (
Any,
@ -204,4 +205,4 @@ class Loader:
'lineno': lineno,
}
errors: Errors = [Error(source, "no books to load in configuration", None)]
return [], errors, {}
return [], errors, bc_options.OPTIONS_DEFAULTS.copy()