You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Accessing a field from the class is not yet supported #12
So this behaviour is currently disabled and replaced with an exception (raise ClassFieldAccessError). We should put it back when it is fixed on pycharm.
Activity
Because of an issue in PyCharm (https://youtrack.jetbrains.com/issue/…
smarie commentedon Nov 16, 2019
There is now also a helper method
getfield(cls, name)to do this, as a workaround while we wait for the pycharm fix.smarie commentedon Mar 8, 2020
Note that this issue causes
inspect.getmembers(cls)to fail on classes holding at least onefieldsmarie commentedon Apr 14, 2020
Great news: I managed to submit a fix to PyCharm : https://youtrack.jetbrains.com/issue/PY-38151
It should be released in 2020.2.
When this is done, I'll be able to fix the issue here, there is no reason to artificially maintain this exception.