/// <summary> /// Helper function for creating a dictionary of the specified type (either /// Dict's type or a subtype of dict) /// </summary> internal static object MakeDict(PythonType cls) { if (cls == TypeCache.Dict) { return(new Dict()); } return(cls.Call(new object[0])); }