[Python] fix numeric enum in python flask, aiohttp (#5019)

* minor code format fix

* fix numeric enum in python flask and aiohttp

* add python-server-all.sh to ensure-up-to-date
This commit is contained in:
William Cheng
2020-01-19 15:25:20 +08:00
committed by GitHub
parent 6a34706a9b
commit fff759b79c
9 changed files with 109 additions and 103 deletions

View File

@@ -162,7 +162,7 @@ class Order(Model):
:param status: The status of this Order.
:type status: str
"""
allowed_values = ["placed", "approved", "delivered"]
allowed_values = ["placed", "approved", "delivered"] # noqa: E501
if status not in allowed_values:
raise ValueError(
"Invalid value for `status` ({0}), must be one of {1}"

View File

@@ -189,7 +189,7 @@ class Pet(Model):
:param status: The status of this Pet.
:type status: str
"""
allowed_values = ["available", "pending", "sold"]
allowed_values = ["available", "pending", "sold"] # noqa: E501
if status not in allowed_values:
raise ValueError(
"Invalid value for `status` ({0}), must be one of {1}"