forked from loafle/openapi-generator-original
[Python] Minor fix to code format (#4172)
* test python e501 fix * 2 spaces * fix format with noqa: E501 * fix format, update samples
This commit is contained in:
@@ -104,7 +104,7 @@ class EnumArrays(object):
|
||||
"""
|
||||
allowed_values = ["fish", "crab"] # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
not set(array_enum).issubset(set(allowed_values))):
|
||||
not set(array_enum).issubset(set(allowed_values))): # noqa: E501
|
||||
raise ValueError(
|
||||
"Invalid values for `array_enum` [{0}], must be a subset of [{1}]" # noqa: E501
|
||||
.format(", ".join(map(str, set(array_enum) - set(allowed_values))), # noqa: E501
|
||||
|
||||
@@ -108,7 +108,7 @@ class MapTest(object):
|
||||
"""
|
||||
allowed_values = ["UPPER", "lower"] # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
not set(map_of_enum_string.keys()).issubset(set(allowed_values))):
|
||||
not set(map_of_enum_string.keys()).issubset(set(allowed_values))): # noqa: E501
|
||||
raise ValueError(
|
||||
"Invalid keys in `map_of_enum_string` [{0}], must be a subset of [{1}]" # noqa: E501
|
||||
.format(", ".join(map(str, set(map_of_enum_string.keys()) - set(allowed_values))), # noqa: E501
|
||||
|
||||
Reference in New Issue
Block a user