Skip to content

Commit f78803c

Browse files
committed
chore: remove some unneed commented out code
1 parent b62d31c commit f78803c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

packages/core/src/robotcode/core/dataclasses.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ def from_dict(
411411
continue
412412

413413
cased_value: Dict[str, Any] = {_decode_case_for_member_name(t, k): v for k, v in value.items()}
414-
# cased_value: Dict[str, Any] = value
415414

416415
type_hints = _get_type_hints_cached(origin or t)
417416
try:
@@ -463,18 +462,6 @@ def from_dict(
463462
except TypeError as ex:
464463
raise TypeError(f"Can't initialize class {match_!r} with parameters {params!r}: {ex}") from ex
465464

466-
# for t in types:
467-
# args = get_args_cached(t)
468-
# origin = get_origin_cached(t)
469-
470-
# if (origin or t) is Literal:
471-
# continue
472-
473-
# if issubclass(origin or t, enum.Enum):
474-
# for v in cast(Iterable[Any], t):
475-
# if v.value == value:
476-
# return cast(_T, v)
477-
478465
raise TypeError(
479466
"Value must be of type `"
480467
+ (

0 commit comments

Comments
 (0)