Twitch doesn’t create official libraries (except for the Game Developer Plugins of which this Python library is not), the library you are using is not created by or directly supported by Twitch.
The one you are using is provided by third parties.
So it’s a bug in the library you are using and needs to be reported to them so they can resolve.
They have a channel on the Libraries Discord: Twitch API or whereever their code is, which I guess would be GitHub → GitHub - Teekeks/pyTwitchAPI: A Python 3.7 compatible implementation of the Twitch API, EventSub, PubSub and Chat
Yeah, my mistake, I forgot this endpoint goes forwards and backwards (before/after) - Reference | Twitch Developers