Skip to content

False negative: Wrong number of arguments for isinstance #9847

@nickdrozd

Description

@nickdrozd

Bug description

isinstance(5)
isinstance(5, int, int)

Configuration

No response

Command used

pylint

Pylint output

No warnings

Expected behavior

Pylint should warn that the number of arguments is wrong.

I don't know if this affects other builtin functions.

Pylint version

pylint 3.2.6
astroid 3.2.4
Python 3.11.1 (main, Dec  7 2022, 01:11:44) [GCC 9.4.0]

OS / Environment

No response

Additional dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    False Negative 🦋No message is emitted but something is wrong with the codeGood first issueFriendly and approachable by new contributorsNeeds PRThis issue is accepted, sufficiently specified and now needs an implementation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions