add note for UnionType
This commit is contained in:
parent
1151419f97
commit
92190c2137
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user