Skip to content

Commit 8d0205a

Browse files
authored
Fix some erroneous comments in node.py
There is no data() method on the NodeResponse.
1 parent 2a95540 commit 8d0205a

File tree

1 file changed

+5
-5
lines changed
  • datacommons_client/endpoints

1 file changed

+5
-5
lines changed

datacommons_client/endpoints/node.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def fetch(
4747
node_dcids=["geoId/06"],
4848
expression="<-"
4949
)
50-
print(response.data)
50+
print(response)
5151
```
5252
"""
5353

@@ -83,8 +83,8 @@ def fetch_property_labels(
8383
8484
Example:
8585
```python
86-
response = node_endpoint.fetch_properties(node_dcids="geoId/06")
87-
print(response.data)
86+
response = node_endpoint.fetch_labels(node_dcids="geoId/06")
87+
print(response)
8888
```
8989
"""
9090
# Determine the direction of the properties.
@@ -130,7 +130,7 @@ def fetch_property_values(
130130
properties="name",
131131
out=True
132132
)
133-
print(response.data)
133+
print(response)
134134
```
135135
"""
136136

@@ -170,7 +170,7 @@ def fetch_all_classes(
170170
Example:
171171
```python
172172
response = node_endpoint.fetch_all_classes()
173-
print(response.data)
173+
print(response)
174174
```
175175
"""
176176

0 commit comments

Comments
 (0)