PortSelector call function should explicitly check the instance type of its arguments
In src/swatch/config.py
, the PortSelector
class has a call function which should explicitly check the instance type of its arguments.
-
The current problem cannot be resolved simply by using
__call__(self, board : Board, processor : Processor, port : Processor.AbstractPort)
because importing the base classes into this file results in circular dependency. -
Accordingly, add to the unit tests in
tests/config/test_PortSelector.py
such that wrong parameter sequence will throwInvalidArgumentException
.