Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removal of type hints in quotes
Browse files Browse the repository at this point in the history
Jakob Schmutz authored and Jakob Schmutz committed Sep 5, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 59a4272 commit d35e41b
Showing 7 changed files with 63 additions and 63 deletions.
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ class {{classname}}(Model):
{{/-last}}
{{/enumVars}}{{/allowableValues}}

def __init__(self{{#vars}}, {{name}}{{^supportPython2}}: '{{dataType}}'{{/supportPython2}}={{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}None{{/defaultValue}}{{/vars}}): # noqa: E501
def __init__(self{{#vars}}, {{name}}={{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}None{{/defaultValue}}{{/vars}}): # noqa: E501
"""{{classname}} - a model defined in OpenAPI

{{#vars}}
@@ -62,7 +62,7 @@ class {{classname}}(Model):

{{/-first}}
@property
def {{name}}(self){{^supportPython2}} -> '{{dataType}}'{{/supportPython2}}:
def {{name}}(self):
"""Gets the {{name}} of this {{classname}}.

{{#description}}
@@ -75,7 +75,7 @@ class {{classname}}(Model):
return self._{{name}}

@{{name}}.setter
def {{name}}(self, {{name}}{{^supportPython2}}: '{{dataType}}'{{/supportPython2}}):
def {{name}}(self, {{name}}):
"""Sets the {{name}} of this {{classname}}.

{{#description}}
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ class ApiResponse(Model):
Do not edit the class manually.
"""

def __init__(self, code: 'int'=None, type: 'str'=None, message: 'str'=None): # noqa: E501
def __init__(self, code=None, type=None, message=None): # noqa: E501
"""ApiResponse - a model defined in OpenAPI
:param code: The code of this ApiResponse. # noqa: E501
@@ -53,7 +53,7 @@ def from_dict(cls, dikt) -> 'ApiResponse':
return util.deserialize_model(dikt, cls)

@property
def code(self) -> 'int':
def code(self):
"""Gets the code of this ApiResponse.
@@ -63,7 +63,7 @@ def code(self) -> 'int':
return self._code

@code.setter
def code(self, code: 'int'):
def code(self, code):
"""Sets the code of this ApiResponse.
@@ -74,7 +74,7 @@ def code(self, code: 'int'):
self._code = code

@property
def type(self) -> 'str':
def type(self):
"""Gets the type of this ApiResponse.
@@ -84,7 +84,7 @@ def type(self) -> 'str':
return self._type

@type.setter
def type(self, type: 'str'):
def type(self, type):
"""Sets the type of this ApiResponse.
@@ -95,7 +95,7 @@ def type(self, type: 'str'):
self._type = type

@property
def message(self) -> 'str':
def message(self):
"""Gets the message of this ApiResponse.
@@ -105,7 +105,7 @@ def message(self) -> 'str':
return self._message

@message.setter
def message(self, message: 'str'):
def message(self, message):
"""Sets the message of this ApiResponse.
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ class Category(Model):
Do not edit the class manually.
"""

def __init__(self, id: 'int'=None, name: 'str'=None): # noqa: E501
def __init__(self, id=None, name=None): # noqa: E501
"""Category - a model defined in OpenAPI
:param id: The id of this Category. # noqa: E501
@@ -48,7 +48,7 @@ def from_dict(cls, dikt) -> 'Category':
return util.deserialize_model(dikt, cls)

@property
def id(self) -> 'int':
def id(self):
"""Gets the id of this Category.
@@ -58,7 +58,7 @@ def id(self) -> 'int':
return self._id

@id.setter
def id(self, id: 'int'):
def id(self, id):
"""Sets the id of this Category.
@@ -69,7 +69,7 @@ def id(self, id: 'int'):
self._id = id

@property
def name(self) -> 'str':
def name(self):
"""Gets the name of this Category.
@@ -79,7 +79,7 @@ def name(self) -> 'str':
return self._name

@name.setter
def name(self, name: 'str'):
def name(self, name):
"""Sets the name of this Category.
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ class Order(Model):
Do not edit the class manually.
"""

def __init__(self, id: 'int'=None, pet_id: 'int'=None, quantity: 'int'=None, ship_date: 'datetime'=None, status: 'str'=None, complete: 'bool'=False): # noqa: E501
def __init__(self, id=None, pet_id=None, quantity=None, ship_date=None, status=None, complete=False): # noqa: E501
"""Order - a model defined in OpenAPI
:param id: The id of this Order. # noqa: E501
@@ -68,7 +68,7 @@ def from_dict(cls, dikt) -> 'Order':
return util.deserialize_model(dikt, cls)

@property
def id(self) -> 'int':
def id(self):
"""Gets the id of this Order.
@@ -78,7 +78,7 @@ def id(self) -> 'int':
return self._id

@id.setter
def id(self, id: 'int'):
def id(self, id):
"""Sets the id of this Order.
@@ -89,7 +89,7 @@ def id(self, id: 'int'):
self._id = id

@property
def pet_id(self) -> 'int':
def pet_id(self):
"""Gets the pet_id of this Order.
@@ -99,7 +99,7 @@ def pet_id(self) -> 'int':
return self._pet_id

@pet_id.setter
def pet_id(self, pet_id: 'int'):
def pet_id(self, pet_id):
"""Sets the pet_id of this Order.
@@ -110,7 +110,7 @@ def pet_id(self, pet_id: 'int'):
self._pet_id = pet_id

@property
def quantity(self) -> 'int':
def quantity(self):
"""Gets the quantity of this Order.
@@ -120,7 +120,7 @@ def quantity(self) -> 'int':
return self._quantity

@quantity.setter
def quantity(self, quantity: 'int'):
def quantity(self, quantity):
"""Sets the quantity of this Order.
@@ -131,7 +131,7 @@ def quantity(self, quantity: 'int'):
self._quantity = quantity

@property
def ship_date(self) -> 'datetime':
def ship_date(self):
"""Gets the ship_date of this Order.
@@ -141,7 +141,7 @@ def ship_date(self) -> 'datetime':
return self._ship_date

@ship_date.setter
def ship_date(self, ship_date: 'datetime'):
def ship_date(self, ship_date):
"""Sets the ship_date of this Order.
@@ -152,7 +152,7 @@ def ship_date(self, ship_date: 'datetime'):
self._ship_date = ship_date

@property
def status(self) -> 'str':
def status(self):
"""Gets the status of this Order.
Order Status # noqa: E501
@@ -163,7 +163,7 @@ def status(self) -> 'str':
return self._status

@status.setter
def status(self, status: 'str'):
def status(self, status):
"""Sets the status of this Order.
Order Status # noqa: E501
@@ -181,7 +181,7 @@ def status(self, status: 'str'):
self._status = status

@property
def complete(self) -> 'bool':
def complete(self):
"""Gets the complete of this Order.
@@ -191,7 +191,7 @@ def complete(self) -> 'bool':
return self._complete

@complete.setter
def complete(self, complete: 'bool'):
def complete(self, complete):
"""Sets the complete of this Order.
26 changes: 13 additions & 13 deletions samples/server/petstore/flaskConnexion/openapi_server/models/pet.py
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ class Pet(Model):
Do not edit the class manually.
"""

def __init__(self, id: 'int'=None, category: 'Category'=None, name: 'str'=None, photo_urls: 'List[str]'=None, tags: 'List[Tag]'=None, status: 'str'=None): # noqa: E501
def __init__(self, id=None, category=None, name=None, photo_urls=None, tags=None, status=None): # noqa: E501
"""Pet - a model defined in OpenAPI
:param id: The id of this Pet. # noqa: E501
@@ -68,7 +68,7 @@ def from_dict(cls, dikt) -> 'Pet':
return util.deserialize_model(dikt, cls)

@property
def id(self) -> 'int':
def id(self):
"""Gets the id of this Pet.
@@ -78,7 +78,7 @@ def id(self) -> 'int':
return self._id

@id.setter
def id(self, id: 'int'):
def id(self, id):
"""Sets the id of this Pet.
@@ -89,7 +89,7 @@ def id(self, id: 'int'):
self._id = id

@property
def category(self) -> 'Category':
def category(self):
"""Gets the category of this Pet.
@@ -99,7 +99,7 @@ def category(self) -> 'Category':
return self._category

@category.setter
def category(self, category: 'Category'):
def category(self, category):
"""Sets the category of this Pet.
@@ -110,7 +110,7 @@ def category(self, category: 'Category'):
self._category = category

@property
def name(self) -> 'str':
def name(self):
"""Gets the name of this Pet.
@@ -120,7 +120,7 @@ def name(self) -> 'str':
return self._name

@name.setter
def name(self, name: 'str'):
def name(self, name):
"""Sets the name of this Pet.
@@ -133,7 +133,7 @@ def name(self, name: 'str'):
self._name = name

@property
def photo_urls(self) -> 'List[str]':
def photo_urls(self):
"""Gets the photo_urls of this Pet.
@@ -143,7 +143,7 @@ def photo_urls(self) -> 'List[str]':
return self._photo_urls

@photo_urls.setter
def photo_urls(self, photo_urls: 'List[str]'):
def photo_urls(self, photo_urls):
"""Sets the photo_urls of this Pet.
@@ -156,7 +156,7 @@ def photo_urls(self, photo_urls: 'List[str]'):
self._photo_urls = photo_urls

@property
def tags(self) -> 'List[Tag]':
def tags(self):
"""Gets the tags of this Pet.
@@ -166,7 +166,7 @@ def tags(self) -> 'List[Tag]':
return self._tags

@tags.setter
def tags(self, tags: 'List[Tag]'):
def tags(self, tags):
"""Sets the tags of this Pet.
@@ -177,7 +177,7 @@ def tags(self, tags: 'List[Tag]'):
self._tags = tags

@property
def status(self) -> 'str':
def status(self):
"""Gets the status of this Pet.
pet status in the store # noqa: E501
@@ -188,7 +188,7 @@ def status(self) -> 'str':
return self._status

@status.setter
def status(self, status: 'str'):
def status(self, status):
"""Sets the status of this Pet.
pet status in the store # noqa: E501
Loading

0 comments on commit d35e41b

Please sign in to comment.