add note for UnionType

This commit is contained in:
Khaleel Al-Adhami 2024-10-22 14:48:06 -07:00
parent 1151419f97
commit 92190c2137

View File

@ -1100,6 +1100,7 @@ def call_event_handler(
# Check if both are concrete types (e.g., int)
return issubclass(provided_type, accepted_type)
# Remove this check when Python 3.10 is the minimum supported version
if hasattr(types, "UnionType"):
provided_type_origin = (
Union