Skip to content

Commit

Permalink
fix black
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Apr 23, 2024
1 parent 5d926a5 commit dddd5e1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 29 deletions.
10 changes: 1 addition & 9 deletions src/compas/datastructures/cell_network/cell_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 1 addition & 8 deletions src/compas/datastructures/mesh/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 1 addition & 9 deletions src/compas/datastructures/volmesh/volmesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions src/compas/scene/sceneobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dddd5e1

Please sign in to comment.