def is_widget_with_placeholder(widget):
    '\n    Return whether this widget should have a placeholder.\n\n    Only text, text area, number, e-mail, url, password, number and derived inputs have placeholders.\n    '
    return isinstance(widget, (TextInput, Textarea, NumberInput, EmailInput, URLInput, PasswordInput))
Return whether this widget should have a placeholder.

Only text, text area, number, e-mail, url, password, number and derived inputs have placeholders.
def is_widget_with_placeholder(widget):
    '\n    Return whether this widget should have a placeholder.\n\n    Only text, text area, number, e-mail, url, password, number and derived inputs have placeholders.\n    '
    return isinstance(widget, (TextInput, Textarea, NumberInput, EmailInput, URLInput, PasswordInput))