Skip to content

Commit 9d0a48f

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

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • datacommons_client/endpoints

datacommons_client/endpoints/node.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ def fetch(
4343
4444
Example:
4545
```python
46-
response = node_endpoint.fetch(
46+
response = node.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.fetch_property_labels(node_dcids="geoId/06")
87+
print(response)
8888
```
8989
"""
9090
# Determine the direction of the properties.
@@ -125,12 +125,12 @@ def fetch_property_values(
125125
126126
Example:
127127
```python
128-
response = node_endpoint.fetch_property_values(
128+
response = node.fetch_property_values(
129129
node_dcids=["geoId/06"],
130130
properties="name",
131131
out=True
132132
)
133-
print(response.data)
133+
print(response)
134134
```
135135
"""
136136

@@ -169,8 +169,8 @@ def fetch_all_classes(
169169
170170
Example:
171171
```python
172-
response = node_endpoint.fetch_all_classes()
173-
print(response.data)
172+
response = node.fetch_all_classes()
173+
print(response)
174174
```
175175
"""
176176

0 commit comments

Comments
 (0)