From 682f6142892ce298260aede6c1247068fedecaa9 Mon Sep 17 00:00:00 2001 From: "Lex Darlog (DRL)" <3897975+Lex-DRL@users.noreply.github.com> Date: Mon, 9 Mar 2026 00:04:55 -0300 Subject: [PATCH] + docstring --- src/basic_data_handling/dict_nodes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/basic_data_handling/dict_nodes.py b/src/basic_data_handling/dict_nodes.py index 2b75b31..89b3d03 100644 --- a/src/basic_data_handling/dict_nodes.py +++ b/src/basic_data_handling/dict_nodes.py @@ -35,6 +35,9 @@ VT4 = TypeVar('VT4') def _output_dict_preserving_type(result: Dict[KT, VT], in_type: Type[Mapping]) -> _U[Dict[KT, VT], Mapping[KT, VT]]: + """Internal function: + try returning the output dict as an instance of the same class as input dict. + """ if in_type is dict: return result