Python: Fix executor handler type resolution when using from __future__ import annotations
#4317
Loading
from __future__ import annotations
#4317