And remove 2 warnings from warnings=extra. (cherry picked from commit e7f22ebdcd)
e7f22ebdcd
OS.get_real_window_size
OS.set_window.size
detect.py