Skip to content

pylint incorrectly issues error E1123 on numpy.unique kwargs (numpy v1.15.4) #3825

@NiaX84

Description

@NiaX84

Steps to reproduce

  1. create code calling numpy.unique with keyword arguments return_counts, return_index
  2. run pylint

Current behavior

E1123 is raised.

E1123: Unexpected keyword argument 'return_counts' in function call (unexpected-keyword-arg)

Expected behavior

no error is raised, since the keyword arguments are present since numpy v1.9.0 and numpy v1.15.4 is used

pylint --version output

pylint 2.6.0
astroid 2.4.2
Python 3.7.2 (default, Mar 27 2019, 08:41:08)
[GCC 6.3.0 20170516]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions