Skip to content

Commit 73b7b1c

Browse files
committed
fix: dataclasses from dict respects Literals also for Python 3.8 and 3.9
1 parent f76b074 commit 73b7b1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: packages/core/src/robotcode/core/dataclasses.py

+3
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ def from_dict(
260260
args = get_args(t)
261261
origin = get_origin(t)
262262

263+
if origin is Literal:
264+
continue
265+
263266
cased_value: Dict[str, Any] = {__decode_case(t, k): v for k, v in value.items()}
264267
type_hints = get_type_hints(origin or t)
265268
try:

0 commit comments

Comments
 (0)