From 6f706f011ef4f77d22267e3d856893d983190314 Mon Sep 17 00:00:00 2001 From: Koudai Aono Date: Fri, 19 Feb 2021 01:26:10 +0900 Subject: [PATCH] Fix lint (#347) --- datamodel_code_generator/parser/jsonschema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datamodel_code_generator/parser/jsonschema.py b/datamodel_code_generator/parser/jsonschema.py index a97c1619f..84eeac67c 100644 --- a/datamodel_code_generator/parser/jsonschema.py +++ b/datamodel_code_generator/parser/jsonschema.py @@ -749,9 +749,9 @@ def parse_root_type( additional_properties: Optional[JsonSchemaObject] = None, ) -> DataType: if obj.ref: - data_type = self.get_ref_data_type(obj.ref) + data_type: DataType = self.get_ref_data_type(obj.ref) elif obj.type: - data_type: DataType = self.get_data_type(obj) + data_type = self.get_data_type(obj) elif obj.anyOf: data_type = self.parse_any_of(name, obj, [*path, name]) elif obj.oneOf: