Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@classmethod
def _query_string(cls, query_options):
"""Return a query string for the given options.
Args:
query_options: A dictionary of query keys/values.
Returns:
A string containing the encoded query.
"""
if query_options:
return '?' + util.to_query(query_options)
else:
return ''