-
Notifications
You must be signed in to change notification settings - Fork 106
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
Pycharm false alarm: Unresolved attribute reference 'toggle' for class 'Pin' #319
Comments
Would you kindly specify the board? |
raspberrypi pico |
|
There is a similar issue with const, which has to be imported as ESP32 S2 |
@Josverl Do you have any suggestions? |
I'm assuming that you use the micropython-stubs for this, and followed the pycharm config for it Please note that the stubs provided by the pycharm feature are different, and older, although there is some shared work here, there will be differences.
I have not yet found a way to configure the same in pycharm. |
Pycharm throws a warning for this working code:
Although the code works correctly on the microcontroller, pycharm could not understand the
toggle()
function and shows this warning:Unresolved attribute reference 'toggle' for class 'Pin'
Since other IDEs (vscode & thonny) does not have this problem, I reached out to report it.
P.S: As you have probably guessed, pycharm's auto-completion does not work for this function, but it works for other functions.
The text was updated successfully, but these errors were encountered: