File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,17 @@ passed on to whatever dispatched the method. If the method is unable to run
2828successfully on any hardware managers, ``HardwareManagerMethodNotFound `` is
2929raised.
3030
31+ Some methods, such as ``filter_device ``, are expected to return ``None `` to
32+ indicate a negative result (i.e., to exclude a device) which happens when
33+ one or more hardware managers override the method and at least one
34+ explicitly returns ``None ``. If dispatch ever reaches the generic manager,
35+ the device is returned without filtering.
36+
37+ This design allows granular control over filtering. To avoid unintentionally
38+ excluding devices, hardware managers must either return the device (or a
39+ modified copy), raise ``IncompatibleHardwareMethodError ``, or refrain from
40+ overriding the method at all.
41+
3142Why build a custom HardwareManager?
3243-----------------------------------
3344Custom hardware managers allow you to include hardware-specific tools, files
You can’t perform that action at this time.
0 commit comments