Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While using PyCharm I do not get autocomplete for methods under requests or events #95

Open
ASirrelle opened this issue Jul 26, 2024 · 1 comment

Comments

@ASirrelle
Copy link

I'll prefix this with "I might be doing a dumb", but I've been unable to get autocomplete working for methods under request or events in PyCharm.
To be clear, the methods work. It was just fairly difficult finding out what methods there were without being able to see or return any.

I'm using Python 3.7 in PyCharm
I've installed obs-websocket-py through PyCharm's Interpreter.

In the init.py I can see events and requests are ClassFactory Instances of Baseevents and Baserequests. I'm assuming this is meant to auto generate all the methods within these two classes and for whatever reason PyCharm says no.

I've found documentation on what methods should exist from another git:
https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.json

Should I create a wrapper using this data, or is there a simpler approach which I'm missing? Thanks!

@iarspider
Copy link

I think all the event and request classes are generated on-the-fly, so there is nothing for PyCharm to autocomplete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants