Skip to content

Commit

Permalink
πŸ› Fix is_array_like for generic types.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalkrupinski committed Jan 3, 2025
1 parent 4f46804 commit 2f89a91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lapidary/runtime/metattype.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def make_not_optional(typ: typing.Any) -> typing.Any:


def is_array_like(typ: typing.Any) -> bool:
typ = unwrap_origin(typ)
return inspect.isclass(typ) and issubclass(typ, Iterable) and not (typ in (str, bytes) or issubclass(typ, Mapping))


Expand Down

0 comments on commit 2f89a91

Please sign in to comment.