-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Crash when checking function overwrites #4443
Comments
Similar errors for: import typing
class Parent:
async def func(self, user_input: typing.Dict[str, int]) -> None:
pass
class Child(Parent):
async def func(self, user_input: typing.Dict[str, int]) -> None:
pass
-- import typing
class Parent:
async def func(self, user_input: typing.List) -> None:
pass
class Child(Parent):
async def func(self, user_input: typing.List) -> None:
pass
|
Thanks for giving so much test cases, clearly we lacked some examples :) How did you find the problem ? (Could it be prevented by #4413 ?) |
I tested the current master against the Home Assistant repo. And then some educated guessing.
It probably would have been. I was thinking we should really add something like it lately. One problem that I noticed though while thinking about it is that in contrast to |
Yes, this is going to cost a shallow git clone + dependencies installation for each repositories at least. But I think it's worth it, so we do not release preventable crashes. It's really easy to not cover every edge case in our functional tests. |
Thank you for these tests. I agree that we lacked several test cases here, like the 'BinOp' case. Also, regarding the typing case, I think it can be fixed, more tests need to be added anyway since the functionality of #4422 is a new addition. |
Steps to reproduce
Current behavior
Expected behavior
No error
pylint --version output
Additional information
The error is most likely caused by #4422
/CC: @Pierre-Sassoulas @ksaketou
The text was updated successfully, but these errors were encountered: