Skip to content

Commit be9e52f

Browse files
committed
optional typing
1 parent 98bceba commit be9e52f

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

src/compas_blender/artists/boxartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self,
2929

3030
super().__init__(shape=box, collection=collection or box.name, **kwargs)
3131

32-
def draw(self, color: RGBColor = None) -> List[bpy.types.Object]:
32+
def draw(self, color: Optional[RGBColor] = None) -> List[bpy.types.Object]:
3333
"""Draw the box associated with the artist.
3434
3535
Parameters

src/compas_blender/artists/capsuleartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self,
3030

3131
super().__init__(shape=capsule, collection=collection or capsule.name, **kwargs)
3232

33-
def draw(self, color: RGBColor = None, u: int = None, v: int = None) -> List[bpy.types.Object]:
33+
def draw(self, color: Optional[RGBColor] = None, u: int = None, v: int = None) -> List[bpy.types.Object]:
3434
"""Draw the capsule associated with the artist.
3535
3636
Parameters

src/compas_blender/artists/circleartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self,
3030
**kwargs: Any):
3131
super().__init__(primitive=circle, collection=collection or circle.name, **kwargs)
3232

33-
def draw(self, color: RGBColor = None, show_point=False, show_normal=False) -> List[bpy.types.Object]:
33+
def draw(self, color: Optional[RGBColor] = None, show_point=False, show_normal=False) -> List[bpy.types.Object]:
3434
"""Draw the circle.
3535
3636
Parameters

src/compas_blender/artists/coneartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self,
3030

3131
super().__init__(shape=cone, collection=collection or cone.name, **kwargs)
3232

33-
def draw(self, color: RGBColor = None, u: int = None) -> List[bpy.types.Object]:
33+
def draw(self, color: Optional[RGBColor] = None, u: int = None) -> List[bpy.types.Object]:
3434
"""Draw the cone associated with the artist.
3535
3636
Parameters

src/compas_blender/artists/cylinderartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self,
3030

3131
super().__init__(shape=cylinder, collection=collection or cylinder.name, **kwargs)
3232

33-
def draw(self, color: RGBColor = None, u: int = None) -> List[bpy.types.Object]:
33+
def draw(self, color: Optional[RGBColor] = None, u: int = None) -> List[bpy.types.Object]:
3434
"""Draw the cylinder associated with the artist.
3535
3636
Parameters

src/compas_blender/artists/lineartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(self,
5050
):
5151
super().__init__(primitive=line, collection=collection or line.name, **kwargs)
5252

53-
def draw(self, color: RGBColor = None, show_points: Optional[bool] = False) -> List[bpy.types.Object]:
53+
def draw(self, color: Optional[RGBColor] = None, show_points: Optional[bool] = False) -> List[bpy.types.Object]:
5454
"""Draw the line.
5555
5656
Parameters

src/compas_blender/artists/pointartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self,
5151
**kwargs: Any):
5252
super().__init__(primitive=point, collection=collection or point.name, **kwargs)
5353

54-
def draw(self, color: RGBColor = None) -> List[bpy.types.Object]:
54+
def draw(self, color: Optional[RGBColor] = None) -> List[bpy.types.Object]:
5555
"""Draw the point.
5656
5757
Returns

src/compas_blender/artists/polygonartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self,
3030
super().__init__(primitive=polygon, collection=collection or polygon.name, **kwargs)
3131

3232
def draw(self,
33-
color: RGBColor = None,
33+
color: Optional[RGBColor] = None,
3434
show_points=False,
3535
show_edges=False,
3636
show_face=True) -> List[bpy.types.Object]:

src/compas_blender/artists/polyhedronartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self,
2929

3030
super().__init__(shape=polyhedron, collection=collection or polyhedron.name, **kwargs)
3131

32-
def draw(self, color: RGBColor = None) -> List[bpy.types.Object]:
32+
def draw(self, color: Optional[RGBColor] = None) -> List[bpy.types.Object]:
3333
"""Draw the polyhedron associated with the artist.
3434
3535
Parameters

src/compas_blender/artists/polylineartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self,
3030
):
3131
super().__init__(primitive=polyline, collection=collection or polyline.name, **kwargs)
3232

33-
def draw(self, color: RGBColor = None, show_points: Optional[bool] = False) -> List[bpy.types.Object]:
33+
def draw(self, color: Optional[RGBColor] = None, show_points: Optional[bool] = False) -> List[bpy.types.Object]:
3434
"""Draw the line.
3535
3636
Parameters

0 commit comments

Comments
 (0)