public override Type GetGenericInferenceType(DynamicMetaObject dynamicObject) { Type res = PythonTypeOps.GetFinalSystemType(dynamicObject.LimitType); if (res == typeof(ExtensibleString) || res == typeof(ExtensibleComplex) || (res.IsGenericType() && res.GetGenericTypeDefinition() == typeof(Extensible <>))) { return(typeof(object)); } return(res); }