def get_signature(name, thing):
if inspect.ismodule(thing):<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>if isinstance(thing, property):<EOL><INDENT>func_sig = name<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>sig = inspect.signature(thing)<EOL><DEDENT>except TypeError:<EOL><INDENT>sig = inspect.signature(thing.fget)<EOL><DEDENT>except ValueError:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>func_sig = f"<STR_LIT>"<EOL>try:<EOL><INDENT>mode = black.FileMode(line_length=<NUM_LIT>)<EOL>func_sig = black.format_str(func_sig, mode=mode).strip()<EOL><DEDENT>except (ValueError, TypeError):<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return f"<STR_LIT>"<EOL>
Get the signature for a function or class, formatted nicely if possible.

Parameters
----------
name : str
    Name of the thing, used as the first part of the signature
thing : class or function
    Thing to get the signature of