functions like these should not report the error imo, since the meaning of the bool is self explanatory, which is often the case when the functin starts with set_:
def set_enabled(enabled: bool):
...
set_enabled(True) # self explanatory
set_enabled(enabled=True) # unnecessary/redundant