Open asonnenschein opened 2 days ago
Is there a way to get these to display in IDEs (I can't get the decorated ones to display in VSCode or Neovim)?
Is there a way to get these to display in IDEs (I can't get the decorated ones to display in VSCode or Neovim)?
Not that I am aware of. The way I have the docstrings set up in this PR will display them via Python's help()
method, and they will build with the docs (not sure why I cannot reply to your comment in a thread @stephenhillier, which is why I am making a separate response comment).
I messed around with approaches for this and my findings are that the language servers (used for display in IDE) do not execute code (which makes sense!) so the doc annotation or my metaclass approach don't work.
What does work, and what I'm now advocating for is:
call_sync
to wait for the coroutineWill iterate on this for the remainder of the day and see what I can do for one of the clients as an example...
This MR enables reference documentation for new synchronous client objects implemented in https://github.com/planetlabs/planet-client-python/pull/1049, and uses a decorator to dynamically populate sync client docstrings from their async client counterparts.