private IPythonType CreateKeysViewType(IReadOnlyList <IPythonType> typeArgs) { if (typeArgs.Count == 1) { return(TypingTypeFactory.CreateKeysViewType(Interpreter, typeArgs[0])); } // TODO: report wrong number of arguments return(Interpreter.UnknownType); }
private IPythonType CreateKeysViewType(IReadOnlyList <IPythonType> typeArgs) { if (typeArgs.Count == 1) { // If argument is generic type parameter then this is still a generic specification return(typeArgs[0] is IGenericTypeParameter ? ToGenericTemplate("KeysView", typeArgs, BuiltinTypeId.ListIterator) : TypingTypeFactory.CreateKeysViewType(Interpreter, typeArgs[0])); } // TODO: report wrong number of arguments return(Interpreter.UnknownType); }