Fix imports in EncodePropertyValueFromWidgetEvent.
Fix type hints in EncodePropertyValueFromWidgetEvent.