@@ -14,7 +14,7 @@ def test_draw(edgelist8):
1414 fig , ax = plt .subplots ()
1515 ax , collections = xgi .draw (H , ax = ax )
1616
17- ( node_collection , dyad_collection , edge_collection ) = collections
17+ node_collection , dyad_collection , edge_collection = collections
1818
1919 # number of elements
2020 assert len (ax .lines ) == 0
@@ -39,7 +39,7 @@ def test_draw(edgelist8):
3939
4040 fig , ax = plt .subplots ()
4141 ax , collections = xgi .draw (S , ax = ax )
42- ( node_collection , dyad_collection , edge_collection ) = collections
42+ node_collection , dyad_collection , edge_collection = collections
4343
4444 # number of elements
4545 assert len (ax .lines ) == 0
@@ -236,12 +236,12 @@ def test_draw_hyperedges(edgelist8):
236236
237237 fig , ax = plt .subplots ()
238238 ax , collections = xgi .draw_hyperedges (H , ax = ax )
239- ( dyad_collection , edge_collection ) = collections
239+ dyad_collection , edge_collection = collections
240240 fig2 , ax2 = plt .subplots ()
241241 ax2 , collections2 = xgi .draw_hyperedges (
242242 H , ax = ax2 , dyad_color = "r" , edge_fc = "r" , dyad_lw = 3 , dyad_style = "--"
243243 )
244- ( dyad_collection2 , edge_collection2 ) = collections2
244+ dyad_collection2 , edge_collection2 = collections2
245245
246246 # number of elements
247247 assert len (ax .lines ) == 0
@@ -279,7 +279,7 @@ def test_draw_hyperedges(edgelist8):
279279 # negative node_lw or node_size
280280 with pytest .raises (ValueError ):
281281 ax , collections = xgi .draw_hyperedges (H , ax = ax , dyad_lw = - 1 )
282- ( dyad_collection , edge_collection ) = collections
282+ dyad_collection , edge_collection = collections
283283 plt .close ("all" )
284284
285285 plt .close ("all" )
@@ -292,7 +292,7 @@ def test_draw_hyperedges_fc_cmap(edgelist8):
292292 # default cmap
293293 fig , ax = plt .subplots ()
294294 ax , collections = xgi .draw_hyperedges (H , ax = ax )
295- ( dyad_collection , edge_collection ) = collections
295+ dyad_collection , edge_collection = collections
296296 assert dyad_collection .get_cmap () == plt .cm .Greys
297297 assert edge_collection .get_cmap () == xgi .crest_r ()
298298 plt .close ("all" )
@@ -303,7 +303,7 @@ def test_draw_hyperedges_fc_cmap(edgelist8):
303303 ax , collections = xgi .draw_hyperedges (
304304 H , ax = ax , dyad_color = dyad_colors , dyad_color_cmap = "Greens" , edge_fc_cmap = "Blues"
305305 )
306- ( dyad_collection , edge_collection ) = collections
306+ dyad_collection , edge_collection = collections
307307 assert dyad_collection .get_cmap () == plt .cm .Greens
308308 assert edge_collection .get_cmap () == plt .cm .Blues
309309
@@ -325,7 +325,7 @@ def test_draw_hyperedges_fc_cmap(edgelist8):
325325 edge_vmin = 14 ,
326326 edge_vmax = 19 ,
327327 )
328- ( dyad_collection , edge_collection ) = collections
328+ dyad_collection , edge_collection = collections
329329 plt .colorbar (dyad_collection )
330330 plt .colorbar (edge_collection )
331331 assert (14 , 19 ) == edge_collection .get_clim ()
@@ -353,7 +353,7 @@ def test_draw_hyperedges_ec(edgelist8):
353353 # edge stat color
354354 fig , ax = plt .subplots ()
355355 ax , collections = xgi .draw_hyperedges (H , ax = ax , edge_ec = H .edges .size , edge_fc = "w" )
356- ( _ , edge_collection ) = collections
356+ _ , edge_collection = collections
357357
358358 assert np .all (edge_collection .get_edgecolor () == colors )
359359 plt .close ("all" )
@@ -369,7 +369,7 @@ def test_draw_simplices(edgelist8):
369369
370370 fig , ax = plt .subplots ()
371371 ax , collections = xgi .draw_simplices (S , ax = ax )
372- ( dyad_collection , edge_collection ) = collections
372+ dyad_collection , edge_collection = collections
373373
374374 # number of elements
375375 assert len (ax .lines ) == 0
@@ -395,7 +395,7 @@ def test_draw_hypergraph_hull(edgelist8):
395395 fig , ax = plt .subplots ()
396396 ax , collections = xgi .draw (H , ax = ax , hull = True )
397397
398- ( node_collection , dyad_collection , edge_collection ) = collections
398+ node_collection , dyad_collection , edge_collection = collections
399399
400400 # number of elements
401401 assert len (ax .lines ) == 0
0 commit comments