from typing import Dict


def query_dict(target: Dict[str, str], query: str) -> Dict[str, str]:
	"""
	Helper function
	Searches a target dictionary for k,v pairs for which the key contains a substring equal to {query}.
	Returned dictionary contains a minimum of 0 and maximum of len(target) items.
	"""
	return {k: v for k, v in vars(target).items() if query in k}