def optional_str(deco):
@wraps(deco)<EOL>def dispatcher(*args, **kwargs):<EOL><INDENT>if not kwargs and len(args) == <NUM_LIT:1> and not isinstance(args[<NUM_LIT:0>], str)and args[<NUM_LIT:0>] is not None:<EOL><INDENT>decorator = deco()<EOL>return decorator(args[<NUM_LIT:0>])<EOL><DEDENT>else:<EOL><INDENT>decorator = deco(*args, **kwargs)<EOL>return decorator<EOL><DEDENT><DEDENT>return dispatcher<EOL>
string 1개만 deco 인자로 오거나 없거나.
:param deco:
:return: