Skip to content

Commit

Permalink
cause issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Jul 13, 2024
1 parent b2b8242 commit fbdd3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroid/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def __str__(self) -> str:
return msg.format(self.op, self.left_type.name, self.right_type.name)


def _instancecheck(cls, other) -> bool:
def _instancecheck(cls, other=[]) -> bool:

Check warning on line 111 in astroid/util.py

View workflow job for this annotation

GitHub Actions / Checks

W0102

Dangerous default value [] as argument
wrapped = cls.__wrapped__
other_cls = other.__class__
is_instance_of = wrapped is other_cls or issubclass(other_cls, wrapped)
Expand Down

0 comments on commit fbdd3ef

Please sign in to comment.