First, I think your message is wrong. Don't you mean that your indexer can only be None if stop is passed? ditto, make this an assert statement. (and then you should add a note to the docstring if it's not already there).  Also, probably clearer to say:

`assert not (indexer is None and stop is _missing), "Must pass stop if indexer is None."`