Skip to content

Commit

Permalink
Fix lint (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
koxudaxi authored Feb 18, 2021
1 parent 4e04f11 commit 6f706f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datamodel_code_generator/parser/jsonschema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6f706f0

Please sign in to comment.