schodet / nxt-python

NXT-Python is a python driver/interface for the Lego Mindstorms NXT robot based on NXT_python.
https://ni.srht.site/nxt-python/latest/
GNU General Public License v3.0
237 stars 74 forks source link

Changed rtype in docstring of find_brick for autocompletion #173

Closed vonunwerth closed 2 years ago

vonunwerth commented 2 years ago

With rtype set to nxt.brick.Brick instead of just Brick you can use autocomplete for a Brick instance. (also for find_with_options)

schodet commented 2 years ago

Can you fix the typo in the commit message: autocompletition -> autocompletion.

Actually, it’s not just for autocompletion, Brick is not part of nxt.locator so the module must be given.

Thanks.

vonunwerth commented 2 years ago

Changed it as requested. Maybe I will find time to revise the tutorial page if there is a need?

schodet commented 2 years ago

Merged, thanks!

I am working on the tutorial page now.