master
return self.cal_points(pos1, pos2)
Trailing blank lines are superfluous.
Okay: spam(1) W391: spam(1)\n However the last line should end with a new line (warning W292).