Skip to content

chore: add typing to Pager #1390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 21, 2024
Merged

Conversation

jorwoods
Copy link
Contributor

@jorwoods jorwoods commented Jun 6, 2024

Add typing to the Pager object. The typing addition makes it clearer for language servers to detect what type of objects are yielded from the iterable, making TSC easier to use.

Additionally, this simplifies the way items are returned from the intermediate list object. Different from before, if the server count changes while the Pager is working, this change will continue to function. If desired, it can be reset to exiting gracefully should the server count change.

@jorwoods jorwoods force-pushed the jorwoods/typed_pager branch from e1d4441 to 6e68d8b Compare June 16, 2024 03:34
@jacalata jacalata merged commit 1fc7b74 into tableau:development Jun 21, 2024
21 checks passed
@jorwoods jorwoods deleted the jorwoods/typed_pager branch June 21, 2024 09:57
@jorwoods jorwoods mentioned this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants