We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47a2a29 commit 6ed80ebCopy full SHA for 6ed80eb
content/api/magnet.md
@@ -29,8 +29,7 @@ magnet_on = r.magnet.energised
29
30
## Checking if a container is nearby
31
32
-The magnet can tell you if there is an object in range to be picked up. You can check if any object is in range by accessing the `nearby` property.
+The magnet can tell you if there is an object in range to be picked up. You can check if any object is in range by accessing the `nearby` method:
33
```python
34
-# Get if a container is nearby
35
-is_nearby = r.magnet.nearby # True or False
36
-```
+# Is there a container nearby?
+is_nearby = r.magnet.nearby() # True or False
0 commit comments