(self, cmd: F)
return wrapper
Wraps a command so that only a specified field is returned.
		
		Parameters
		----------
		cmd
			A command that is intended to be wrapped
Wraps a command so that only a specified field is returned.
		
		Parameters
		----------
		cmd
			A command that is intended to be wrapped
Wraps a command so that only a specified field is returned . Parameters ---------- cmd A command that is intended to be wrapped
def __call__(self, cmd: F) -> ty.Callable[..., T]:
		"""Wraps a command so that only a specified field is returned.
		
		Parameters
		----------
		cmd
			A command that is intended to be wrapped
		"""
		@wraps(cmd)
		def wrapper(*args: ty.Any, **kwargs: ty.Any) -> T:
			"""Returns the specified field as returned by the wrapped function
			
			Parameters
			----------
			args
				Positional parameters to pass to the wrapped callable
			kwargs
				Named parameter to pass to the wrapped callable
			"""
			res = cmd(*args, **kwargs)  # type: ty.Dict[str, T]
			return res[self.field]
		return wrapper
def __call__ ( self , cmd : F ) -> ty . Callable [ ... , T ] : @ wraps ( cmd ) def wrapper ( * args : ty . Any , * * kwargs : ty . Any ) -> T : """Returns the specified field as returned by the wrapped function
			
			Parameters
			----------
			args
				Positional parameters to pass to the wrapped callable
			kwargs
				Named parameter to pass to the wrapped callable
			""" res = cmd ( * args , * * kwargs ) # type: ty.Dict[str, T] return res [ self . field ] return wrapper