-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
Regression for #1186 #1200
Comments
I can take a look although I can't promise a timeframe. I am quite busy this week. |
Tested a few more things. Reverting the change to the return would fix the issue. - return f"{package_name}.{modname}"
+ return f"{package_name}.{modname.split('.')[0]}" Not sure that was even necessary as all the test cases seem to pass even without it. If it is, maybe there needs to be a conditional added? |
#1186 added logic for parsing package names. This seems to have caused a regression visible as
too-many-function-args
error in the example below.File structure
Runing pylint:
pylint -sn b/a.py
The error seems to happen as
func
is wrongly inferred as coming fromb/level1/__init__.py
, thus having one argument less than passed. The inference happens here: typecheck.py -> visit_call.--
@DanielNoord As you authored #1186, would you mind taking a look at this?
The text was updated successfully, but these errors were encountered: