This commit is contained in:
Danglewood
2024-10-24 20:47:34 -07:00
parent ebbea27b14
commit 159d72bf17

View File

@@ -437,7 +437,7 @@ class SignatureInspector:
if not isinstance(results_type, type(None)):
results_type = results_type_args[0]
is_list = get_origin(results_type) == list
is_list = isinstance(get_origin(results_type), list)
inner_type = (
results_type_args[0] if is_list and results_type_args else results_type
)