Skip to content

Commit b5a36c9

Browse files
committed
Merge branch 'develop'
2 parents 0e49645 + fe58a64 commit b5a36c9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tkclasswiz/object_frame/frame_base.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,13 @@ def remove_classes(types: list):
177177

178178
return tuple(r)
179179

180+
if isinstance(input_type, str):
181+
raise TypeError(
182+
f"Provided type '{input_type}' is not a type - it is a string!\n"
183+
"Potential subscripted type problem?\n"
184+
"Instead of e. g., list['type'], try using typing.List['type']."
185+
)
186+
180187
origin = get_origin(input_type)
181188
# Unpack Union items into a tuple
182189
if origin is Union or issubclass_noexcept(origin, Iterable):

0 commit comments

Comments
 (0)