Skip to content

Commit 4f7682e

Browse files
committed
feat: Allow passing partial configuration to relevant functions
1 parent b404e99 commit 4f7682e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/griffe2md/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def prepare_context(obj: Object, config: dict | None = None) -> dict:
3737
Returns:
3838
The Jinja context.
3939
"""
40-
config = config or dict(rendering.default_config)
40+
config = dict(rendering.default_config, **(config or {}))
4141
if config["filters"]:
4242
config["filters"] = [(re.compile(filtr.lstrip("!")), filtr.startswith("!")) for filtr in config["filters"]]
4343

0 commit comments

Comments
 (0)