Skip to content

Commit

Permalink
[fixup] simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Jul 1, 2023
1 parent 40be546 commit 69dac2d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pylint/checkers/typecheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,10 +1318,8 @@ def _is_builtin_no_return(node: nodes.Assign) -> bool:
and isinstance(node.value.func, nodes.Attribute)
and bool(inferred := utils.safe_infer(node.value.func.expr))
and isinstance(inferred, bases.Instance)
and bool(pytype := inferred.pytype())
and pytype.startswith("builtins")
and pytype in BUILTINS_RETURN_NONE
and node.value.func.attrname in BUILTINS_RETURN_NONE[pytype]
and node.value.func.attrname
in BUILTINS_RETURN_NONE.get(inferred.pytype(), ())
)

def _check_dundername_is_string(self, node: nodes.Assign) -> None:
Expand Down

0 comments on commit 69dac2d

Please sign in to comment.