+ docstring

This commit is contained in:
Lex Darlog (DRL)
2026-03-22 14:00:41 -03:00
parent 48983f2268
commit 682f614289
+3
View File
@@ -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