changed width and height attributes of Layer to be optional to accurately reflect the JSON format

This commit is contained in:
Darren Eberly
2020-06-07 20:45:10 -04:00
parent 68ec66a227
commit e0d157ab86

View File

@@ -36,10 +36,9 @@ class Layer:
name: str
height: int
width: int
id: Optional[int] = None
width: Optional[int] = 0
height: Optional[int] = 0
offset: Optional[OrderedPair] = None
opacity: Optional[float] = 1
properties: Optional[properties_.Properties] = None