Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

chore: add typing to Pager#1390

Merged
jacalata merged 3 commits intotableau:developmenttableau/server-client-python:developmentfrom
jorwoods:jorwoods/typed_pagerjorwoods/server-client-python:jorwoods/typed_pagerCopy head branch name to clipboard
Jun 21, 2024
Merged

chore: add typing to Pager#1390
jacalata merged 3 commits intotableau:developmenttableau/server-client-python:developmentfrom
jorwoods:jorwoods/typed_pagerjorwoods/server-client-python:jorwoods/typed_pagerCopy head branch name to clipboard

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
tableauserverclient/server/pager.py Show resolved Hide resolved
@jacalata jacalata merged commit 1fc7b74 into tableau:development Jun 21, 2024
@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.