Method: pylint.checkers.utils.is_builtin_object
Calls: 1027, Exceptions: 0, Paths: 1Back
Path 1: 1027 calls (1.0)
ClassDef (558) BoundMethod (314) FunctionDef (142) None (4) Lambda (3) ClassModel.attr___subclasses__.
True (793) False (229) None (4) Uninferable (1)
1def is_builtin_object(node: nodes.NodeNG) -> bool:
2 """Returns True if the given node is an object from the __builtin__ module."""
3 return node and node.root().name == "builtins" # type: ignore[no-any-return]