from flask_wtf import FlaskForm
from wtforms import SubmitField, TextAreaField
from wtforms.validators import DataRequired


class CommentForm(FlaskForm):
    text = TextAreaField("Text", validators=[DataRequired()])
    submit = SubmitField('Publish')

[((8, 13, 8, 35), 'wtforms.SubmitField', 'SubmitField', ({(8, 25, 8, 34): '"""Publish"""'}, {}), "('Publish')", False, 'from wtforms import SubmitField, TextAreaField\n'), ((7, 45, 7, 59), 'wtforms.validators.DataRequired', 'DataRequired', ({}, {}), '()', False, 'from wtforms.validators import DataRequired\n')]