Skip to content

Commit 8a81a1d

Browse files
committed
fixed circular dependency issue on python generated code
1 parent f6ec95c commit 8a81a1d

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)