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));
        }
示例#2
0
        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));
        }
示例#3
0
 public TypingDictionary(TypingDictionaryType dictType)
     : base(dictType, EmptyDictionary <IMember, IMember> .Instance)
 {
     _dictType = dictType;
 }
示例#4
0
 public TypingDictionary(TypingDictionaryType dictType, LocationInfo location = null)
     : base(dictType, location ?? LocationInfo.Empty, EmptyDictionary <IMember, IMember> .Instance)
 {
     _dictType = dictType;
 }