[3.7] bpo-27639: Correct return type for UserList slicing operation (GH-13169) by miss-islington · Pull Request #13181 · python/cpython

@mblahay @miss-islington

…GH-13169)

* BPO-27639: Correct return type for UserList slicing operation

Added logic to __getitem__ magic method for UserList to ensure that the return
type matches that of self.
(cherry picked from commit b1c3167)

Co-authored-by: Michael Blahay <mblahay@users.noreply.github.com>