itertools.islice
`stop` parameter to `islice` can be `None`, which is important when checking with --strict-optional