![JAR search and dependency download from the Maven repository](/logo.png)
python.model_templates.method_init_normal.mustache Maven / Gradle / Ivy
required_properties = set([
'_data_store',
'_check_type',
'_spec_property_naming',
'_path_to_item',
'_configuration',
'_visited_composed_classes',
])
{{> model_templates/method_init_shared }}
{{#isEnum}}
self.value = value
{{/isEnum}}
{{#requiredVars}}
self.{{name}} = {{name}}
{{/requiredVars}}
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
self.additional_properties_type is None:
# discard variable.
continue
setattr(self, var_name, var_value)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy