Skip to content
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

False positive for too-many-function-args with numpy #3059

Closed
RJB17 opened this issue Aug 13, 2019 · 3 comments
Closed

False positive for too-many-function-args with numpy #3059

RJB17 opened this issue Aug 13, 2019 · 3 comments
Labels
Astroid Related to astroid Bug 🪲

Comments

@RJB17
Copy link

RJB17 commented Aug 13, 2019

Reoccurence of 2326

Steps to reproduce

astroid==2.2.5
isort==4.3.21
lazy-object-proxy==1.4.1
mccabe==0.6.1
numpy==1.17.0
pylint==2.3.1
six==1.12.0
typed-ast==1.4.0
wrapt==1.11.2
python==3.7
import numpy as np
X = np.timedelta64(1, 'D')
  1. Run pylint

Current behavior

E1121: Too many positional arguments for constructor call (too-many-function-args)

Expected behavior

No too-many-function-args

pylint --version output

pylint 2.3.1
astroid 2.2.5
Python 3.7.2 (default, Jun 7 2019, 15:59:38)
[GCC 7.4.0]

@PCManticore
Copy link
Contributor

Thanks @RJB17 !

@PCManticore PCManticore added Astroid Related to astroid Bug 🪲 labels Aug 16, 2019
@hippo91
Copy link
Contributor

hippo91 commented Aug 19, 2019

@RJB17
I can confirm your problem with pylint 2.3.1 and astroid 2.2.5. However with the current master branch of astroid the problem disappears.
The emission of such message will thus disappear with the next version of astroid.

@PCManticore
Copy link
Contributor

Thanks for confirming that this is already fixed @hippo91 Let's close this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Astroid Related to astroid Bug 🪲
Projects
None yet
Development

No branches or pull requests

3 participants