public static IMember DictStringToObject(IPythonModule module, IPythonFunctionOverload overload, IArgumentSet argSet, IndexSpan indexSpan) { var str = module.Interpreter.GetBuiltinType(BuiltinTypeId.Str); var obj = module.Interpreter.GetBuiltinType(BuiltinTypeId.Object); var type = new TypingDictionaryType("Dict", str, obj, module.Interpreter, false); return(new TypingDictionary(type)); }
public static IMember DictStringToObject(IPythonModule module, IPythonFunctionOverload overload, LocationInfo location, IReadOnlyList <IMember> args) { var str = module.Interpreter.GetBuiltinType(BuiltinTypeId.Str); var obj = module.Interpreter.GetBuiltinType(BuiltinTypeId.Object); var type = new TypingDictionaryType("Dict", str, obj, module.Interpreter, false); return(new TypingDictionary(type, location)); }
public TypingDictionary(TypingDictionaryType dictType) : base(dictType, EmptyDictionary <IMember, IMember> .Instance) { _dictType = dictType; }
public TypingDictionary(TypingDictionaryType dictType, LocationInfo location = null) : base(dictType, location ?? LocationInfo.Empty, EmptyDictionary <IMember, IMember> .Instance) { _dictType = dictType; }