From cf243729ebce4997f61f65b4ecddd62f8cb93f34 Mon Sep 17 00:00:00 2001 From: Darren Eberly Date: Mon, 1 Jun 2020 20:31:17 -0400 Subject: [PATCH] refactor: changed the way properties is imported in tiled_object to support new conventions --- pytiled_parser/tiled_object.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pytiled_parser/tiled_object.py b/pytiled_parser/tiled_object.py index b05527f..a3c1e4e 100644 --- a/pytiled_parser/tiled_object.py +++ b/pytiled_parser/tiled_object.py @@ -5,8 +5,8 @@ from typing import Callable, Dict, List, Mapping, Optional, Union import attr from typing_extensions import TypedDict +from . import properties from .common_types import Color, OrderedPair, Size -from .properties import Properties, RawProperties from .template import Template @@ -43,7 +43,7 @@ class TiledObject: name: Optional[str] = None type: Optional[str] = None - properties: Properties = {} + properties: properties.Properties = {} template: Optional[Template] = None @@ -163,7 +163,7 @@ class RawTiledObject(TypedDict): visible: bool name: str type: str - properties: RawProperties + properties: properties.RawProperties template: Template ellipse: bool point: bool