Skip to content
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

DOCS-2347: Update example on GetLatestTabularData #807

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sguequierre
Copy link
Contributor

  • feedback from bill where he wanted example values in the example
  • tested out example

@sguequierre sguequierre requested a review from a team as a code owner December 20, 2024 19:53
)

if tabular_data and len(tabular_data) == 3:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if tabular_data and len(tabular_data) == 3:
if tabular_data:

(minor) I think the len check here is unnecessary, since the return value will always be either None or a tuple of length 3.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, if I run without the check though and it returns None I get this error TypeError: cannot unpack non-iterable NoneType object. Is that expected/ok?

resource_subtype="<RESOURCE-SUBTYPE>",
method_name="<METHOD-NAME>"
tabular_data = await data_client.get_latest_tabular_data(
part_id="77ae3145-7b91-123a-a234-e567cdca8910",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(q) is this a real part-id? Is there any reason we might want to redact it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a real part-id!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants