Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _set_properties(self, node):
TiledElement._set_properties(self, node)
# TODO: make class/layer-specific type casting
# layer height and width must be int, but TiledElement.set_properties()
# make a float by default, so recast as int here
self.height = int(self.height)
self.width = int(self.width)
def _set_properties(self, node):
TiledElement._set_properties(self, node)
# TODO: make class/layer-specific type casting
# layer height and width must be int, but TiledElement.set_properties()
# make a float by default, so recast as int here
self.height = int(self.height)
self.width = int(self.width)