Skip to content

Commit 7cf5669

Browse files
committed
typing and formatting
1 parent d75f468 commit 7cf5669

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/compas/scene/geometryobject.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,20 @@ class GeometryObject(SceneObject):
4343
linecolor = ColorAttribute()
4444
surfacecolor = ColorAttribute()
4545

46-
def __init__(self, pointcolor=None, linecolor=None, surfacecolor=None, pointsize=1.0, linewidth=1.0, show_points=False, show_lines=True, show_surfaces=True, **kwargs):
47-
# type: (compas.colors.Color | None, compas.colors.Color | None, compas.colors.Color | None, float, float, bool, bool, bool, dict) -> None
48-
super(GeometryObject, self).__init__(**kwargs)
46+
def __init__(
47+
self,
48+
pointcolor=None, # type: compas.colors.Color | None
49+
linecolor=None, # type: compas.colors.Color | None
50+
surfacecolor=None, # type: compas.colors.Color | None
51+
pointsize=1.0, # type: float
52+
linewidth=1.0, # type: float
53+
show_points=False, # type: bool
54+
show_lines=True, # type: bool
55+
show_surfaces=True, # type: bool
56+
**kwargs # type: dict
57+
): # fmt: skip
58+
# type: (...) -> None
59+
super(GeometryObject, self).__init__(**kwargs) # type: ignore
4960
self.pointcolor = pointcolor or self.color
5061
self.linecolor = linecolor or self.color
5162
self.surfacecolor = surfacecolor or self.color

0 commit comments

Comments
 (0)