pcdsdevices.utils.maybe_make_method
- pcdsdevices.utils.maybe_make_method(func: Callable | None, owner: object) Callable | None
- Bind - funcas a method of- ownerif- selfis the first parameter.- Additionally, this accepts - Noneand passes it through.- Parameters:
- func (callable or None) – The function to optionally wrap. 
- owner (object) – The owner class instance to optionally bind - functo.
 
- Returns:
- maybe_method (callable or None) – A callable function or method, depending on the signature of - func.