-
Notifications
You must be signed in to change notification settings - Fork 53
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
base: main
Are you sure you want to change the base?
DOCS-2347: Update example on GetLatestTabularData #807
Conversation
sguequierre
commented
Dec 20, 2024
- feedback from bill where he wanted example values in the example
- tested out example
) | ||
|
||
if tabular_data and len(tabular_data) == 3: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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!