add missing return

This commit is contained in:
Khaleel Al-Adhami 2024-11-15 17:15:43 -08:00
parent 7d0a4f7133
commit ed1ae0d3a2

View File

@ -862,6 +862,7 @@ def typehint_issubclass(possible_subclass: Any, possible_superclass: Any) -> boo
iterable_type, TypeVar iterable_type, TypeVar
): ):
return typehint_issubclass(str, iterable_type) return typehint_issubclass(str, iterable_type)
return True
if not safe_issubclass( if not safe_issubclass(
provided_type_origin, (accepted_type_origin or possible_superclass) provided_type_origin, (accepted_type_origin or possible_superclass)