get_keywords#

sunpy.util.get_keywords(func)[source]#

Returns a set of keyword names from func’s signature. Recursive if func is a list of functions and methods.

Parameters:

func (function or method or list) – Function or method (or list of those) to extract a set of accepted keyword arguments for.

Returns:

keywords (set) – A set of accepted keyword arguments.