Do you mean that step 'should' not be None?
As shown in line 391, if step is not given, its value is None.