Fixed #23420 - broken warning for unbound naive datetime objects