reduce favourite dock code length (pylint)