We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e49645 + fe58a64 commit b5a36c9Copy full SHA for b5a36c9
tkclasswiz/object_frame/frame_base.py
@@ -177,6 +177,13 @@ def remove_classes(types: list):
177
178
return tuple(r)
179
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
+
187
origin = get_origin(input_type)
188
# Unpack Union items into a tuple
189
if origin is Union or issubclass_noexcept(origin, Iterable):
0 commit comments