Skip to content

Commit cdf4c77

Browse files
committed
Typing fix to JSON int properties
1 parent ec893f8 commit cdf4c77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytiled_parser/parsers/json/properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def parse(raw_properties: List[RawProperty]) -> Properties:
4646
elif raw_property["type"] == "color":
4747
value = parse_color(cast(str, raw_property["value"]))
4848
elif raw_property["type"] == "int":
49-
value = round(raw_property["value"])
49+
value = round(cast(float, raw_property["value"]))
5050
else:
5151
value = raw_property["value"]
5252
final[raw_property["name"]] = value

0 commit comments

Comments
 (0)