-
Notifications
You must be signed in to change notification settings - Fork 768
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
Cannot create consistent method ordering when creating a class with multiple inheritance from the typing module #361
Comments
Thanks for the report. The standard Python rules for constructing an MRO (method resolution ordering) would normally indicate that a proper MRO cannot be created in this case because As a workaround in the meantime, you can simply delete
PEP 484 say:
|
Brilliant, thank you. I didn't know that. |
I'm going to keep this open for now because there's a bug that I'd still like to address. |
The incorrect error will be addressed in the next release of Pylance. Thanks again for reporting the problem. |
@erictraut Hello, can you solve this problem, no one responded😂,Two weeks have passed. #301 |
I responded four days ago saying that the problem was fixed, and the fix will be included in the next release of Pylance. We typically release Pylance Wed or Thurs of each week. |
Magic, thank you so much for such a quick fix.
Take care,
Chris Norman
…On Sat, 12 Sep 2020 at 08:22, Eric Traut ***@***.***> wrote:
The incorrect error will be addressed in the next release of Pylance.
Thanks again for reporting the problem.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#361 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABBUZ2KWOUDFICBL6UXRYV3SFMOTBANCNFSM4RHUJ5OA>
.
|
This issue has been fixed in version 2020.9.5, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#202095-16-september-2020 |
@jakebailey I've just did a first-time install of Pylance (2020.10.0) and hitting exactly this issue. |
This is a month old issue that should be fixed (and we typically add regression tests for these sorts of issues). If you see something again please file a new issue with a reproduction so we can track it. Thanks. |
pylance : 2020.12.0 |
@lonelygo, can you provide sample code for a repro? |
Environment data
Expected behaviour
I should be able to create a class with multiple inheritance, and Pylance should be able to figure everything out.
Actual behaviour
I get the following error:
Logs
Code Snippet / Additional information
I created the above code in a clean virtualenv, with no extra packages installed.
The text was updated successfully, but these errors were encountered: