Skip to content

Commit 0b4ec92

Browse files
authored
Merge pull request #460 from swagger-api/codege-issue-8483
fixed circular dependency issue on python generated code
2 parents f6ec95c + 8a81a1d commit 0b4ec92

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/main/resources/handlebars/python/model.mustache

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

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

1410

1511
{{#models}}
1612
{{#model}}
17-
class {{classname}}({{#parent}}{{parent}}{{/parent}}{{^parent}}object{{/parent}}):
13+
class {{classname}}(object):
1814
"""NOTE: This class is auto generated by the swagger code generator program.
1915

2016
Do not edit the class manually.

src/main/resources/mustache/python/model.mustache

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

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

1410

1511
{{#models}}
1612
{{#model}}
17-
class {{classname}}({{#parent}}{{parent}}{{/parent}}{{^parent}}object{{/parent}}):
13+
class {{classname}}(object):
1814
"""NOTE: This class is auto generated by the swagger code generator program.
1915

2016
Do not edit the class manually.

0 commit comments

Comments
 (0)