@classmethod
def get_description(cls):
// First line of docstring.
return "" if cls.__doc__ is None else cls.__doc__.partition("\n")[0].strip()
@classmethod
def register_options(cls, register):
After Change
@classmethod
def get_description(cls) -> Optional[str]:
return get_first_line_of_docstring(cls)
@classmethod
def register_options(cls, register):
Register options for this optionable.