-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
[Bug Report] VSCode PyLance stubs are outdated/incorrect #2918
Comments
This seems like a PyLance issue? We don't provide any explicit stubs, just type annotations in most places.
Scratch that, it definitely is a PyLance issue. They seem to maintain stubs in a special repo which seems kinda... |
Well, maintaining stubs in another non-openai repo seems like a really bad idea, maybe they should just remove them and let you type your stuff |
Given that we (the volunteer dev group) have only been doing this for about a year then I suspect that the stub was created when there were no type hints in the project |
Is Gym a project you contribute to on your free time or are you "assigned" to it? Just curious 😉 |
Join the discord (https://discord.gg/nHg2JRN489) and we ask for developers to help with stuff when problems occur |
Also for posterity, none of us are affiliated with OpenAI, I feel like this might be a misunderstanding. We're not assigned to it because there's nobody who'd be able to assign us anywhere |
Thanks! I though OpenAI was actually maintaining this ;) |
Line 106 in 0dba072
Not sure what the type of metadata should be, but it should still have a typeAnnoation or |
also there is a way to test of type completeness on your public api using pyright
Results: Symbols exported by "gym": 1371 Other symbols referenced but not exported by "gym": 880 Type completeness score: 23.6% can also integrate a github action like typeshed to run pyright |
@bschnurr Thanks for the suggestion, I wasn't aware of the |
If we detect a py.typed file we shouldn't be using our shipped stubs.. i'll double check whats happening |
@bschnurr Currently there is a weird bug occurring with these type stubs, I can move the discussion to the pyright repo if that is more helpful. System
Edit: Looking at this on my Macbook then this issue no longer happens |
Hey, I'm going to close this as the issue has been resolved with the new type hinting additions in master, please let us know if you need any additional help |
Hi!
VSCode's PyLance (Python language server) extension contains some builtin stubs, with a gym-stubs directory that contains the following line for instance:
It is of course wrong since
metadata
can containrender_fps
which is of type int.Who/where are those stubs managed? They should be updated since VSCode reports errors in code analysis in the meantime.
Please let me know if you have any question.
The text was updated successfully, but these errors were encountered: