Ensure comprehensions and generator expressions work

This commit is contained in:
Peter Law
2020-02-23 15:25:28 +00:00
parent f4cbf61604
commit f1a9e681ad
2 changed files with 12 additions and 2 deletions

View File

@@ -180,6 +180,16 @@ for x7 in unwrap_custom(list_custom_instances):
x7
for xc in unwrap_custom([CustomGeneric(s) for s in 'abc']):
#? str()
xc
for xg in unwrap_custom(CustomGeneric(s) for s in 'abc'):
#? str()
xg
# Test extraction of type from type parameer nested within a custom generic type
custom_instance_list_int = CustomGeneric([42]) # type: CustomGeneric[List[int]]