MCPcopy Create free account
hub / github.com/python/mypy / is_object

Function is_object

mypyc/irbuild/specialize.py:1226–1232  ·  view source on GitHub ↗

Returns True for object. calls.

(callee: RefExpr)

Source from the content-addressed store, hash-verified

1224
1225
1226def is_object(callee: RefExpr) -> bool:
1227 """Returns True for object.<name> calls."""
1228 return (
1229 isinstance(callee, MemberExpr)
1230 and isinstance(callee.expr, NameExpr)
1231 and callee.expr.fullname == "builtins.object"
1232 )
1233
1234
1235def is_super_or_object(expr: CallExpr, callee: RefExpr) -> bool:

Callers 2

is_super_or_objectFunction · 0.70
translate_object_setattrFunction · 0.70

Calls 1

isinstanceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…