This repository has been archived by the owner on Apr 14, 2022. It is now read-only.
PEP544, inheriting Protocol show error: Inheriting 'Protocol', which is not a class. #2021
Comments
Those errors you see comes directly from the linters. Please paste the Python output panel mentioned in the issue template. What type of linter are you using? |
Looks like it's coming from the Python Language server. |
Hello, |
|
#535. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version vscode-python#3977): same result, tried bothpython.languageServer
setting: MicrosoftExpected behaviour
No error should be raised since it is defined in PEP Protocol must be used this way
Actual behaviour
error in Problems view:
Inheriting 'Protocol', which is not a class.
Steps to reproduce:
from PEP544
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Nothing relevant
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)Hemmm, coredump opening the devtool under arch, too new kernel or glibc, have to investigate if it's electron side or vscode one (but I guess nothing relevant there either)
Please, if you correct the issue, could you do it that even on python version before 3.8, if using
typing_extensions
it work also ? (typing extensions were used by mypy before 3.8, I think: https://mypy.readthedocs.io/en/latest/protocols.html#simple-user-defined-protocols)The text was updated successfully, but these errors were encountered: