This can be done more nicely with `inherit=True` and `inherit="bool"` in the `classdef.method` line.