From 675ecb96fe0e51f169c2d01683f02205ef327825 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 2 Nov 2021 15:24:40 -0700 Subject: cleanup imports after fatcat_tools.transforms change --- python/fatcat_web/forms.py | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'python/fatcat_web') diff --git a/python/fatcat_web/forms.py b/python/fatcat_web/forms.py index 2757ebd2..b432ac16 100644 --- a/python/fatcat_web/forms.py +++ b/python/fatcat_web/forms.py @@ -7,13 +7,29 @@ but can't find one that is actually maintained. import datetime import toml +from fatcat_openapi_client import ( + ContainerEntity, + FileEntity, + FileUrl, + ReleaseContrib, + ReleaseEntity, + ReleaseExtIds, +) from flask_wtf import FlaskForm -from wtforms import SelectField, DateField, StringField, IntegerField, \ - HiddenField, FormField, FieldList, validators, ValidationError, TextAreaField +from wtforms import ( + DateField, + FieldList, + FormField, + HiddenField, + IntegerField, + SelectField, + StringField, + TextAreaField, + ValidationError, + validators, +) -from fatcat_tools import entity_to_toml -from fatcat_openapi_client import ContainerEntity, FileEntity, \ - ReleaseEntity, ReleaseContrib, FileUrl, ReleaseExtIds +from fatcat_tools.transforms import entity_to_toml release_type_options = [ ('', 'Unknown (blank)'), -- cgit v1.2.3