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, 'wtforms.SubmitField', 'SubmitField', False, 'from wtforms import SubmitField, TextAreaField\n'), (7, 'wtforms.validators.DataRequired', 'DataRequired', False, 'from wtforms.validators import DataRequired\n')]