List and Set were doing a comparison in their can_cast_type functions that assumed the List[T] variant of the type was being used instead of the list[T] variant. This PR makes the check compatible with both of these variants. It also adds a unit test for the Set type, which had been missing.
List
andSet
were doing a comparison in theircan_cast_type
functions that assumed theList[T]
variant of the type was being used instead of thelist[T]
variant. This PR makes the check compatible with both of these variants. It also adds a unit test for theSet
type, which had been missing.