Skip to content

Commit 6fe2263

Browse files
committed
fixed circular imports on python/flask generators models
1 parent 47f355a commit 6fe2263

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

modules/swagger-codegen/src/main/resources/flaskConnexion/model.mustache

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ from datetime import date, datetime # noqa: F401
66
from typing import List, Dict # noqa: F401
77

88
from {{modelPackage}}.base_model_ import Model
9-
{{#imports}}{{import}} # noqa: F401,E501
10-
{{/imports}}
119
from {{packageName}} import util
1210

1311

@@ -158,4 +156,4 @@ class {{classname}}(Model):
158156
{{/vars}}
159157

160158
{{/model}}
161-
{{/models}}
159+
{{/models}}

modules/swagger-codegen/src/main/resources/python/model.mustache

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ import pprint
66
import re # noqa: F401
77

88
import six
9-
{{#imports}}{{#-first}}
10-
{{/-first}}
11-
{{import}} # noqa: F401,E501
12-
{{/imports}}
13-
149

1510
{{#models}}
1611
{{#model}}

0 commit comments

Comments
 (0)