@@ -389,18 +389,18 @@ def test_connection_filters(self) -> None:
389389
390390 # with start filter applied, we get back only connections whose `start`
391391 # component matches one of the provided IDs
392- assert graph .connections (matching_sources = { ComponentId (8 )} ) == set ()
393- assert graph .connections (matching_sources = { ComponentId (7 )} ) == set ()
394- assert graph .connections (matching_sources = { ComponentId (6 )} ) == set ()
395- assert graph .connections (matching_sources = { ComponentId (5 )} ) == set ()
396- assert graph .connections (matching_sources = { ComponentId (4 )} ) == set ()
397- assert graph .connections (matching_sources = { ComponentId (3 )} ) == set ()
398- assert graph .connections (matching_sources = { ComponentId (2 )} ) == {
392+ assert graph .connections (matching_sources = ComponentId (8 )) == set ()
393+ assert graph .connections (matching_sources = ComponentId (7 )) == set ()
394+ assert graph .connections (matching_sources = ComponentId (6 )) == set ()
395+ assert graph .connections (matching_sources = ComponentId (5 )) == set ()
396+ assert graph .connections (matching_sources = ComponentId (4 )) == set ()
397+ assert graph .connections (matching_sources = ComponentId (3 )) == set ()
398+ assert graph .connections (matching_sources = ComponentId (2 )) == {
399399 ComponentConnection (source = ComponentId (2 ), destination = ComponentId (4 )),
400400 ComponentConnection (source = ComponentId (2 ), destination = ComponentId (5 )),
401401 ComponentConnection (source = ComponentId (2 ), destination = ComponentId (6 )),
402402 }
403- assert graph .connections (matching_sources = { ComponentId (1 )} ) == {
403+ assert graph .connections (matching_sources = ComponentId (1 )) == {
404404 ComponentConnection (source = ComponentId (1 ), destination = ComponentId (2 )),
405405 ComponentConnection (source = ComponentId (1 ), destination = ComponentId (3 )),
406406 }
@@ -427,23 +427,23 @@ def test_connection_filters(self) -> None:
427427
428428 # with end filter applied, we get back only connections whose `end`
429429 # component matches one of the provided IDs
430- assert graph .connections (matching_destinations = { ComponentId (8 )} ) == set ()
431- assert graph .connections (matching_destinations = { ComponentId (6 )} ) == {
430+ assert graph .connections (matching_destinations = ComponentId (8 )) == set ()
431+ assert graph .connections (matching_destinations = ComponentId (6 )) == {
432432 ComponentConnection (source = ComponentId (2 ), destination = ComponentId (6 ))
433433 }
434- assert graph .connections (matching_destinations = { ComponentId (5 )} ) == {
434+ assert graph .connections (matching_destinations = ComponentId (5 )) == {
435435 ComponentConnection (source = ComponentId (2 ), destination = ComponentId (5 ))
436436 }
437- assert graph .connections (matching_destinations = { ComponentId (4 )} ) == {
437+ assert graph .connections (matching_destinations = ComponentId (4 )) == {
438438 ComponentConnection (source = ComponentId (2 ), destination = ComponentId (4 ))
439439 }
440- assert graph .connections (matching_destinations = { ComponentId (3 )} ) == {
440+ assert graph .connections (matching_destinations = ComponentId (3 )) == {
441441 ComponentConnection (source = ComponentId (1 ), destination = ComponentId (3 ))
442442 }
443- assert graph .connections (matching_destinations = { ComponentId (2 )} ) == {
443+ assert graph .connections (matching_destinations = ComponentId (2 )) == {
444444 ComponentConnection (source = ComponentId (1 ), destination = ComponentId (2 ))
445445 }
446- assert graph .connections (matching_destinations = { ComponentId (1 )} ) == set ()
446+ assert graph .connections (matching_destinations = ComponentId (1 )) == set ()
447447 assert graph .connections (
448448 matching_destinations = {ComponentId (1 ), ComponentId (2 ), ComponentId (3 )}
449449 ) == {
@@ -470,18 +470,18 @@ def test_connection_filters(self) -> None:
470470 ComponentConnection (source = ComponentId (2 ), destination = ComponentId (4 )),
471471 ComponentConnection (source = ComponentId (2 ), destination = ComponentId (6 )),
472472 }
473- assert graph .connections (matching_destinations = { ComponentId (1 )} ) == set ()
473+ assert graph .connections (matching_destinations = ComponentId (1 )) == set ()
474474
475475 # when both filters are applied, they are combined via AND logic, i.e.
476476 # a connection must have its `start` matching one of the provided start
477477 # values, and its `end` matching one of the provided end values
478478 assert graph .connections (
479- matching_sources = { ComponentId (1 )} , matching_destinations = { ComponentId (2 )}
479+ matching_sources = ComponentId (1 ), matching_destinations = ComponentId (2 )
480480 ) == {ComponentConnection (source = ComponentId (1 ), destination = ComponentId (2 ))}
481481 assert (
482482 graph .connections (
483- matching_sources = { ComponentId (2 )} ,
484- matching_destinations = { ComponentId (3 )} ,
483+ matching_sources = ComponentId (2 ),
484+ matching_destinations = ComponentId (3 ),
485485 )
486486 == set ()
487487 )
0 commit comments