(self, **args)
return s
Create a selection with the given parameters.

        To provide an alias, use ``__alias__`` keyword argument.
Create a selection with the given parameters.
Create a selection with the given parameters .
def __call__(self, **args):
        '''Create a selection with the given parameters.

        To provide an alias, use ``__alias__`` keyword argument.
        '''
        alias = args.pop('__alias__') if '__alias__' in args else None
        typename = args.pop('__typename__') if '__typename__' in args else None
        s = self.__selections.get(alias)
        if s is not None:
            if not args:
                return s
            raise ValueError(
                ('%s already have a selection %s. '
                 'Maybe use __alias__ as param?') % (self.__field__, s))

        s = self.__selections[alias] = Selection(
            alias, self.__field__, args, typename)
        self.__parent__ += s
        return s
def __call__ ( self , * * args ) : alias = args . pop ( '__alias__' ) if '__alias__' in args else None typename = args . pop ( '__typename__' ) if '__typename__' in args else None s = self . __selections . get ( alias ) if s is not None : if not args : return s raise ValueError ( ( '%s already have a selection %s. ' 'Maybe use __alias__ as param?' ) % ( self . __field__ , s ) ) s = self . __selections [ alias ] = Selection ( alias , self . __field__ , args , typename ) self . __parent__ += s return s