From dddd5e1c81c042fff3171c191efceb9f959b054b Mon Sep 17 00:00:00 2001 From: tomvanmele Date: Tue, 23 Apr 2024 19:29:14 +0200 Subject: [PATCH] fix black --- src/compas/datastructures/cell_network/cell_network.py | 10 +--------- src/compas/datastructures/mesh/mesh.py | 9 +-------- src/compas/datastructures/volmesh/volmesh.py | 10 +--------- src/compas/scene/sceneobject.py | 5 ++--- 4 files changed, 5 insertions(+), 29 deletions(-) diff --git a/src/compas/datastructures/cell_network/cell_network.py b/src/compas/datastructures/cell_network/cell_network.py index 4c5b7f068b8..2a439c5c751 100644 --- a/src/compas/datastructures/cell_network/cell_network.py +++ b/src/compas/datastructures/cell_network/cell_network.py @@ -227,15 +227,7 @@ def __from_data__(cls, data): return cell_network - def __init__( - self, - default_vertex_attributes=None, - default_edge_attributes=None, - default_face_attributes=None, - default_cell_attributes=None, - name=None, - **kwargs - ): + def __init__(self, default_vertex_attributes=None, default_edge_attributes=None, default_face_attributes=None, default_cell_attributes=None, name=None, **kwargs): # fmt: skip super(CellNetwork, self).__init__(kwargs, name=name) self._max_vertex = -1 self._max_face = -1 diff --git a/src/compas/datastructures/mesh/mesh.py b/src/compas/datastructures/mesh/mesh.py index 7be50338ef7..702affd543d 100644 --- a/src/compas/datastructures/mesh/mesh.py +++ b/src/compas/datastructures/mesh/mesh.py @@ -235,14 +235,7 @@ def __from_data__(cls, data): return mesh - def __init__( - self, - default_vertex_attributes=None, - default_edge_attributes=None, - default_face_attributes=None, - name=None, - **kwargs - ): + def __init__(self, default_vertex_attributes=None, default_edge_attributes=None, default_face_attributes=None, name=None, **kwargs): # fmt: skip super(Mesh, self).__init__(kwargs, name=name) self._max_vertex = -1 self._max_face = -1 diff --git a/src/compas/datastructures/volmesh/volmesh.py b/src/compas/datastructures/volmesh/volmesh.py index 15e4b8c5405..eca7cbbce39 100644 --- a/src/compas/datastructures/volmesh/volmesh.py +++ b/src/compas/datastructures/volmesh/volmesh.py @@ -202,15 +202,7 @@ def __from_data__(cls, data): return volmesh - def __init__( - self, - default_vertex_attributes=None, - default_edge_attributes=None, - default_face_attributes=None, - default_cell_attributes=None, - name=None, - **kwargs - ): + def __init__(self, default_vertex_attributes=None, default_edge_attributes=None, default_face_attributes=None, default_cell_attributes=None, name=None, **kwargs): # fmt: skip super(VolMesh, self).__init__(kwargs, name=name) self._max_vertex = -1 self._max_face = -1 diff --git a/src/compas/scene/sceneobject.py b/src/compas/scene/sceneobject.py index e8b894f7464..3f53a59ca27 100644 --- a/src/compas/scene/sceneobject.py +++ b/src/compas/scene/sceneobject.py @@ -84,9 +84,8 @@ def __new__(cls, item, **kwargs): sceneobject_cls = get_sceneobject_cls(item, **kwargs) return super(SceneObject, cls).__new__(sceneobject_cls) - def __init__( - self, item, name=None, color=None, opacity=1.0, show=True, frame=None, transformation=None, context=None, **kwargs - ): # type: (compas.geometry.Geometry | compas.datastructures.Datastructure, str | None, compas.colors.Color | None, float, bool, compas.geometry.Frame | None, compas.geometry.Transformation | None, str | None, dict) -> None + def __init__(self, item, name=None, color=None, opacity=1.0, show=True, frame=None, transformation=None, context=None, **kwargs): # fmt: skip + # type: (compas.geometry.Geometry | compas.datastructures.Datastructure, str | None, compas.colors.Color | None, float, bool, compas.geometry.Frame | None, compas.geometry.Transformation | None, str | None, dict) -> None name = name or item.name super(SceneObject, self).__init__(name=name, **kwargs) # the scene object needs to store the context