code: def query(self, value=None):
          
          if value is not None:
              return URL._mutate(self, query=value)
          return self._tuple.query
docs: Return or set the query string
  
          :param string value: the new query string to use
          :returns: string or new :class:`URL` instance