File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 13
13
- id : check-toml
14
14
name : Validate pyproject.toml
15
15
- repo : https://github.com/astral-sh/ruff-pre-commit
16
- rev : v0.9.7
16
+ rev : v0.11.0
17
17
hooks :
18
18
- id : ruff
19
19
name : ruff lint
Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ def _tree_layout(
335
335
# Always make a copy of the children because they get eaten
336
336
stack = [list (children [root_vertex ]).copy ()]
337
337
stick = [root_vertex ]
338
- parent = { u : root_vertex for u in children [root_vertex ]}
338
+ parent = dict . fromkeys ( children [root_vertex ], root_vertex )
339
339
pos = {}
340
340
obstruction = [0.0 ] * len (T )
341
341
o = - 1 if orientation == "down" else 1
@@ -810,12 +810,12 @@ def _create_vertices(
810
810
vertex_mobjects = {}
811
811
812
812
graph_center = self .get_center ()
813
- base_positions = { v : graph_center for v in vertices }
813
+ base_positions = dict . fromkeys ( vertices , graph_center )
814
814
base_positions .update (positions )
815
815
positions = base_positions
816
816
817
817
if isinstance (labels , bool ):
818
- labels = { v : labels for v in vertices }
818
+ labels = dict . fromkeys ( vertices , labels )
819
819
else :
820
820
assert isinstance (labels , dict )
821
821
base_labels = dict .fromkeys (vertices , False )
You can’t perform that action at this time.
0 commit comments