From 15c78c2c0f1e8472bb524b58a3d265a74233a043 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 7 Sep 2026 21:50:03 +0200 Subject: [PATCH] fix: copy parameter of root redefine type too --- src/rougail/convert/convert.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rougail/convert/convert.py b/src/rougail/convert/convert.py index cd2947a66..93a10ab4b 100644 --- a/src/rougail/convert/convert.py +++ b/src/rougail/convert/convert.py @@ -579,10 +579,10 @@ class ParserVariable: for subpath in spath: current = current.children[subpath] current.children[name] = option - if option.types: - parameters = option.types.parameters.copy() - parameters.update(option.parameters) - option.parameters = parameters + if option.types: + parameters = option.types.parameters.copy() + parameters.update(option.parameters) + option.parameters = parameters def change_namespaces(self, variable): for key, value in variable.items():