joshuadevlin
02/02/2023, 2:09 AMjoshuadevlin
02/02/2023, 2:10 AMhas_more to true and call this conditionally in get_new_paginator but it seems hackyaaronsteers
02/02/2023, 3:38 AMconfig but many of our other classes do. If you subclass the Paginator's constructor, you can then send either the full config dict or just a specific flag or param within the Stream's get_new_paginator() method.
Another approach would be to subclass your MyPaginator class as something like MyDryRunPaginator or MyNoopPaginator and return an instance of that class instead of the "real one" in get_new_paginator(). Since get_new_paginator() would have access to Stream.config, you could trigger this behavior based upon specific config flag.joshuadevlin
02/02/2023, 3:43 AM