Skip to content

Commit

Permalink
fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas authored and jacobtylerwalls committed Jul 21, 2024
1 parent a5f6d72 commit a93018e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions astroid/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,7 @@ def delayed_assattr(self, node: nodes.AssignAttr) -> None:
try:
# pylint: disable=unidiomatic-typecheck # We want a narrow check on the
# parent type, not all of its subclasses
if (
type(inferred) == bases.Instance
or type(inferred) == objects.ExceptionInstance
):
if type(inferred) in {bases.Instance, objects.ExceptionInstance}:
inferred = inferred._proxied
iattrs = inferred.instance_attrs
if not _can_assign_attr(inferred, node.attrname):
Expand Down

0 comments on commit a93018e

Please sign in to comment.