Add type conversion (#1932)

main
zhiltsov-max 6 years ago committed by GitHub
parent 8bacccc3b8
commit fa4eea70d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -378,7 +378,9 @@ class _Shape(Annotation):
id=None, attributes=None, group=None):
super().__init__(id=id, type=type,
attributes=attributes, group=group)
self._points = points
if points is None:
points = []
self._points = list(points)
if label is not None:
label = int(label)

Loading…
Cancel
Save